(pytester: Pytester)
| 181 | |
| 182 | |
| 183 | def test_setup_that_skips_calledagain(pytester: Pytester) -> None: |
| 184 | p = pytester.makepyfile( |
| 185 | """ |
| 186 | import pytest |
| 187 | def setup_module(mod): |
| 188 | pytest.skip("x") |
| 189 | def test_function1(): |
| 190 | pass |
| 191 | def test_function2(): |
| 192 | pass |
| 193 | """ |
| 194 | ) |
| 195 | reprec = pytester.inline_run(p) |
| 196 | reprec.assertoutcome(skipped=2) |
| 197 | |
| 198 | |
| 199 | def test_setup_fails_again_on_all_tests(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected