Method
test_longreprtext_failure
(self, pytester: Pytester)
Source from the content-addressed store, hash-verified
| 983 | assert "Skipped" in call.report.longreprtext |
| 984 | |
| 985 | def test_longreprtext_failure(self, pytester: Pytester) -> None: |
| 986 | reports = pytester.runitem( |
| 987 | """ |
| 988 | def test_func(): |
| 989 | x = 1 |
| 990 | assert x == 4 |
| 991 | """ |
| 992 | ) |
| 993 | rep = reports[1] |
| 994 | assert "assert 1 == 4" in rep.longreprtext |
| 995 | |
| 996 | def test_captured_text(self, pytester: Pytester) -> None: |
| 997 | reports = pytester.runitem( |
Callers
nothing calls this directly
Tested by
no test coverage detected