(self, pytester: Pytester, monkeypatch)
| 313 | result.stdout.fnmatch_lines(["collected 1 item"]) |
| 314 | |
| 315 | def test_rewrite(self, pytester: Pytester, monkeypatch) -> None: |
| 316 | config = pytester.parseconfig() |
| 317 | f = StringIO() |
| 318 | monkeypatch.setattr(f, "isatty", lambda *args: True) |
| 319 | tr = TerminalReporter(config, f) |
| 320 | tr._tw.fullwidth = 10 |
| 321 | tr.write("hello") |
| 322 | tr.rewrite("hey", erase=True) |
| 323 | assert f.getvalue() == "hello" + "\r" + "hey" + (6 * " ") |
| 324 | |
| 325 | def test_report_teststatus_explicit_markup( |
| 326 | self, monkeypatch: MonkeyPatch, pytester: Pytester, color_mapping |
nothing calls this directly
no test coverage detected