We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b922e commit d4e487cCopy full SHA for d4e487c
extras/test_autograder_helpers.py
@@ -0,0 +1,19 @@
1
+import pytest
2
+from .autograder.source.tests.helpers import check_plots
3
+
4
5
+def test_check_plots_good():
6
+ check_plots('px.line(df, x="year", y="life_expectancy", title="Life expectancy")')
7
8
9
+def test_check_plots_get_trendline_results():
10
+ check_plots("px.get_trendline_results(fig)")
11
12
13
+def test_check_plots_no_plotly():
14
+ check_plots("")
15
16
17
+def test_check_plots_no_title():
18
+ with pytest.raises(AssertionError):
19
+ check_plots('px.line(df, x="year", y="life_expectancy")')
0 commit comments