(self, pytester: Pytester)
| 652 | result.stdout.fnmatch_lines(["* 2 passed, 1 xfailed in *"]) |
| 653 | |
| 654 | def test_parametrize_passed(self, pytester: Pytester) -> None: |
| 655 | pytester.makepyfile( |
| 656 | """ |
| 657 | import pytest |
| 658 | |
| 659 | m = pytest.mark.xfail('True') |
| 660 | |
| 661 | @pytest.mark.parametrize('x', [0, 1, pytest.param(2, marks=m)]) |
| 662 | def test_xfail(x): |
| 663 | pass |
| 664 | """ |
| 665 | ) |
| 666 | result = pytester.runpytest() |
| 667 | result.stdout.fnmatch_lines(["* 2 passed, 1 xpassed in *"]) |
| 668 | |
| 669 | def test_parametrize_xfail_passed(self, pytester: Pytester) -> None: |
| 670 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected