MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / test_check_object

Function test_check_object

tests/test_check_object.py:17–21  ·  view source on GitHub ↗
(sct, stu_code, passes, msg)

Source from the content-addressed store, hash-verified

15 [("", False, "udm"), ("x = 1", False, "icm"), ("x = 100", True, None)],
16)
17def test_check_object(sct, stu_code, passes, msg):
18 output = helper.run({"DC_SOLUTION": "x = 100", "DC_CODE": stu_code, "DC_SCT": sct})
19 assert output["correct"] == passes
20 if msg:
21 assert output["message"] == msg
22
23
24@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected