(stu, passes)
| 118 | ], |
| 119 | ) |
| 120 | def test_check_function_def_args(stu, passes): |
| 121 | s = setup_state(stu, "def f(a, b = 3): pass") |
| 122 | with helper.verify_sct(passes): |
| 123 | s.check_function_def("f").multi( |
| 124 | check_args(0) |
| 125 | .has_equal_part("name", msg="wrong") |
| 126 | .has_equal_part("is_default", msg="wrong"), |
| 127 | check_args(1) |
| 128 | .has_equal_part("name", msg="wrong") |
| 129 | .has_equal_part("is_default", msg="wrong") |
| 130 | .has_equal_value(), |
| 131 | ) |
| 132 | |
| 133 | |
| 134 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected