(self, pytester: Pytester, linecomp)
| 109 | ) |
| 110 | |
| 111 | def test_internalerror(self, pytester: Pytester, linecomp) -> None: |
| 112 | modcol = pytester.getmodulecol("def test_one(): pass") |
| 113 | rep = TerminalReporter(modcol.config, file=linecomp.stringio) |
| 114 | with pytest.raises(ValueError) as excinfo: |
| 115 | raise ValueError("hello") |
| 116 | rep.pytest_internalerror(excinfo.getrepr()) |
| 117 | linecomp.assert_contains_lines(["INTERNALERROR> *ValueError*hello*"]) |
| 118 | |
| 119 | def test_writeline(self, pytester: Pytester, linecomp) -> None: |
| 120 | modcol = pytester.getmodulecol("def test_one(): pass") |
nothing calls this directly
no test coverage detected