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