(self, pytester: Pytester)
| 27 | |
| 28 | class TestGeneralUsage: |
| 29 | def test_config_error(self, pytester: Pytester) -> None: |
| 30 | pytester.copy_example("conftest_usageerror/conftest.py") |
| 31 | result = pytester.runpytest(pytester.path) |
| 32 | assert result.ret == ExitCode.USAGE_ERROR |
| 33 | result.stderr.fnmatch_lines(["*ERROR: hello"]) |
| 34 | result.stdout.fnmatch_lines(["*pytest_unconfigure_called"]) |
| 35 | |
| 36 | def test_root_conftest_syntax_error(self, pytester: Pytester) -> None: |
| 37 | pytester.makepyfile(conftest="raise SyntaxError\n") |
nothing calls this directly
no test coverage detected