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

Function test_check_function_basic

tests/test_check_function.py:30–35  ·  view source on GitHub ↗
(stu, passes, a_arg, b_arg)

Source from the content-addressed store, hash-verified

28@pytest.mark.parametrize("a_arg", ["a", 0])
29@pytest.mark.parametrize("b_arg", ["b", 1])
30def test_check_function_basic(stu, passes, a_arg, b_arg):
31 s = setup_state(stu, "my_fun(1, 2)", pec="def my_fun(a, b): pass")
32 with helper.verify_sct(passes):
33 s.check_function("my_fun").multi(
34 check_args(a_arg).has_equal_value(), check_args(b_arg).has_equal_value()
35 )
36
37
38def test_params_not_matched():

Callers

nothing calls this directly

Calls 2

setup_stateFunction · 0.85
check_argsFunction · 0.85

Tested by

no test coverage detected