(self, pytester: Pytester)
| 88 | assert passed == skipped == 0 |
| 89 | |
| 90 | def test_maxfail(self, pytester: Pytester) -> None: |
| 91 | reprec = pytester.inline_runsource( |
| 92 | """ |
| 93 | def test_one(): assert 0 |
| 94 | def test_two(): assert 0 |
| 95 | def test_three(): assert 0 |
| 96 | """, |
| 97 | "--maxfail=2", |
| 98 | ) |
| 99 | passed, skipped, failed = reprec.countoutcomes() |
| 100 | assert failed == 2 |
| 101 | assert passed == skipped == 0 |
| 102 | |
| 103 | def test_broken_repr(self, pytester: Pytester) -> None: |
| 104 | p = pytester.makepyfile( |
nothing calls this directly
no test coverage detected