(pytester: Pytester)
| 79 | |
| 80 | |
| 81 | def test_hookvalidation_unknown(pytester: Pytester) -> None: |
| 82 | pytester.makeconftest( |
| 83 | """ |
| 84 | def pytest_hello(xyz): |
| 85 | pass |
| 86 | """ |
| 87 | ) |
| 88 | result = pytester.runpytest() |
| 89 | assert result.ret != 0 |
| 90 | result.stdout.fnmatch_lines(["*unknown hook*pytest_hello*"]) |
| 91 | |
| 92 | |
| 93 | def test_hookvalidation_optional(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected