(self, pytester: Pytester)
| 637 | result.stdout.fnmatch_lines(["* 1 failed, 2 passed in *"]) |
| 638 | |
| 639 | def test_parametrize_xfail(self, pytester: Pytester) -> None: |
| 640 | pytester.makepyfile( |
| 641 | """ |
| 642 | import pytest |
| 643 | |
| 644 | m = pytest.mark.xfail('True') |
| 645 | |
| 646 | @pytest.mark.parametrize('x', [0, 1, pytest.param(2, marks=m)]) |
| 647 | def test_xfail(x): |
| 648 | assert x < 2 |
| 649 | """ |
| 650 | ) |
| 651 | result = pytester.runpytest() |
| 652 | result.stdout.fnmatch_lines(["* 2 passed, 1 xfailed in *"]) |
| 653 | |
| 654 | def test_parametrize_passed(self, pytester: Pytester) -> None: |
| 655 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected