(self, pytester: Pytester, strict: bool)
| 290 | class TestXFail: |
| 291 | @pytest.mark.parametrize("strict", [True, False]) |
| 292 | def test_xfail_simple(self, pytester: Pytester, strict: bool) -> None: |
| 293 | item = pytester.getitem( |
| 294 | """ |
| 295 | import pytest |
| 296 | @pytest.mark.xfail(strict=%s) |
| 297 | def test_func(): |
| 298 | assert 0 |
| 299 | """ |
| 300 | % strict |
| 301 | ) |
| 302 | reports = runtestprotocol(item, log=False) |
| 303 | assert len(reports) == 3 |
| 304 | callreport = reports[1] |
| 305 | assert callreport.skipped |
| 306 | assert callreport.wasxfail == "" |
| 307 | |
| 308 | def test_xfail_xpassed(self, pytester: Pytester) -> None: |
| 309 | item = pytester.getitem( |
nothing calls this directly
no test coverage detected