(self, pytester: Pytester)
| 466 | ) |
| 467 | |
| 468 | def test_xfail_xpass(self, pytester: Pytester) -> None: |
| 469 | p = pytester.makepyfile( |
| 470 | test_one=""" |
| 471 | import pytest |
| 472 | @pytest.mark.xfail |
| 473 | def test_that(): |
| 474 | assert 1 |
| 475 | """ |
| 476 | ) |
| 477 | result = pytester.runpytest(p, "-rX") |
| 478 | result.stdout.fnmatch_lines(["*XPASS*test_that*", "*1 xpassed*"]) |
| 479 | assert result.ret == 0 |
| 480 | |
| 481 | def test_xfail_imperative(self, pytester: Pytester) -> None: |
| 482 | p = pytester.makepyfile( |
nothing calls this directly
no test coverage detected