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

Function test_check_function_def_basic

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

Source from the content-addressed store, hash-verified

19 ],
20)
21def test_check_function_def_basic(stu, passes):
22 s = setup_state(stu, "def test(x): print(x)")
23 with helper.verify_sct(passes):
24 s.check_function_def("test").multi(
25 check_args(0).has_equal_part("name", msg="wrong"),
26 check_body()
27 .set_context(1)
28 .check_function("print")
29 .check_args(0)
30 .has_equal_value(),
31 )
32
33
34@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

setup_stateFunction · 0.90
check_argsFunction · 0.85

Tested by

no test coverage detected