If no ini file, test should error.
(pytester: Pytester, file_structure)
| 72 | |
| 73 | |
| 74 | def test_no_ini(pytester: Pytester, file_structure) -> None: |
| 75 | """If no ini file, test should error.""" |
| 76 | result = pytester.runpytest("test_foo.py") |
| 77 | assert result.ret == pytest.ExitCode.INTERRUPTED |
| 78 | result.assert_outcomes(errors=1) |
| 79 | expected_error = "E ModuleNotFoundError: No module named 'foo'" |
| 80 | result.stdout.fnmatch_lines([expected_error]) |
| 81 | |
| 82 | |
| 83 | def test_clean_up(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected