(self, pytester: Pytester, strict: bool)
| 297 | class TestXFail: |
| 298 | @pytest.mark.parametrize("strict", [True, False]) |
| 299 | def test_xfail_simple(self, pytester: Pytester, strict: bool) -> None: |
| 300 | item = pytester.getitem( |
| 301 | f""" |
| 302 | import pytest |
| 303 | @pytest.mark.xfail(strict={strict}) |
| 304 | def test_func(): |
| 305 | assert 0 |
| 306 | """ |
| 307 | ) |
| 308 | reports = runtestprotocol(item, log=False) |
| 309 | assert len(reports) == 3 |
| 310 | callreport = reports[1] |
| 311 | assert callreport.skipped |
| 312 | assert callreport.wasxfail == "" |
| 313 | |
| 314 | def test_xfail_xpassed(self, pytester: Pytester) -> None: |
| 315 | item = pytester.getitem( |
nothing calls this directly
no test coverage detected