(pytester: Pytester)
| 91 | |
| 92 | |
| 93 | def test_hookvalidation_optional(pytester: Pytester) -> None: |
| 94 | pytester.makeconftest( |
| 95 | """ |
| 96 | import pytest |
| 97 | @pytest.hookimpl(optionalhook=True) |
| 98 | def pytest_hello(xyz): |
| 99 | pass |
| 100 | """ |
| 101 | ) |
| 102 | result = pytester.runpytest() |
| 103 | assert result.ret == ExitCode.NO_TESTS_COLLECTED |
| 104 | |
| 105 | |
| 106 | def test_traceconfig(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected