You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/test_test_function.py
+30-11Lines changed: 30 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -458,7 +458,7 @@ def test_line_numbers1(self):
458
458
self.data= {"DC_PEC": '',
459
459
"DC_SOLUTION": "round(1.23456, ndigits = 1)",
460
460
"DC_CODE": "round(1.34567, ndigits = 1)",
461
-
"DC_SCT": "test_function('round', index = 1)"}
461
+
"DC_SCT": "test_function('round', index = 1, highlight=True)"}
462
462
sct_payload=helper.run(self.data)
463
463
self.assertFalse(sct_payload['correct'])
464
464
self.assertIn("Did you call <code>round()</code> with the correct arguments? The first argument seems to be incorrect.", sct_payload['message'])
@@ -468,7 +468,7 @@ def test_line_numbers(self):
468
468
self.data= {"DC_PEC": '',
469
469
"DC_SOLUTION": "round(1.23456, ndigits = 1)",
470
470
"DC_CODE": "round(1.23456, ndigits = 3)",
471
-
"DC_SCT": "test_function('round', index = 1)"}
471
+
"DC_SCT": "test_function('round', index = 1, highlight=True)"}
472
472
sct_payload=helper.run(self.data)
473
473
self.assertFalse(sct_payload['correct'])
474
474
self.assertIn("Did you call <code>round()</code> with the correct arguments? Keyword <code>ndigits</code> seems to be incorrect.", sct_payload['message'])
0 commit comments