Test that callback passes type checking in normal mode.
(typing_module, callback_code, expected_status, tmp_path)
| 114 | ], |
| 115 | ) |
| 116 | def test_typi_callback_basic(typing_module, callback_code, expected_status, tmp_path): |
| 117 | """Test that callback passes type checking in normal mode.""" |
| 118 | codefile = os.path.join(tmp_path, "code.py") |
| 119 | code = format_template_and_save(callback_template, codefile, callback_code) |
| 120 | |
| 121 | output, error, status = run_module(codefile, typing_module) |
| 122 | assert ( |
| 123 | status == expected_status |
| 124 | ), f"Status: {status}\nOutput: {output}\nError: {error}\nCode: {code}\nModule: {typing_module}" |
| 125 | |
| 126 | |
| 127 | @pytest.mark.parametrize("typing_module", typing_modules) |
nothing calls this directly
no test coverage detected
searching dependent graphs…