(self, pytester: Pytester, linecomp)
| 149 | linecomp.assert_contains_lines(["INTERNALERROR> *ValueError*hello*"]) |
| 150 | |
| 151 | def test_writeline(self, pytester: Pytester, linecomp) -> None: |
| 152 | modcol = pytester.getmodulecol("def test_one(): pass") |
| 153 | rep = TerminalReporter(modcol.config, file=linecomp.stringio) |
| 154 | rep.write_fspath_result(modcol.nodeid, ".") |
| 155 | rep.write_line("hello world") |
| 156 | lines = linecomp.stringio.getvalue().split("\n") |
| 157 | assert not lines[0] |
| 158 | assert lines[1].endswith(modcol.name + " .") |
| 159 | assert lines[2] == "hello world" |
| 160 | |
| 161 | def test_show_runtest_logstart(self, pytester: Pytester, linecomp) -> None: |
| 162 | item = pytester.getitem("def test_func(): pass") |
nothing calls this directly
no test coverage detected