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

Function test_check_call

tests/test_check_function_def.py:174–182  ·  view source on GitHub ↗
(stu, passes)

Source from the content-addressed store, hash-verified

172 ],
173)
174def test_check_call(stu, passes):
175 s = setup_state(stu, "def test(a, b): print(a + b); return a + b")
176 with helper.verify_sct(passes):
177 s.check_function_def("test").multi(
178 check_call("f(1,2)").has_equal_value(),
179 check_call("f(1,2)").has_equal_output(),
180 check_call("f(3,1)").has_equal_value(),
181 check_call("f(1, '2')").has_equal_error(),
182 )
183
184
185@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

setup_stateFunction · 0.90
check_callFunction · 0.85

Tested by

no test coverage detected