(self, pytester: Pytester, monkeypatch)
| 345 | result.stdout.fnmatch_lines(["collected 1 item"]) |
| 346 | |
| 347 | def test_rewrite(self, pytester: Pytester, monkeypatch) -> None: |
| 348 | config = pytester.parseconfig() |
| 349 | f = StringIO() |
| 350 | monkeypatch.setattr(f, "isatty", lambda *args: True) |
| 351 | tr = TerminalReporter(config, f) |
| 352 | tr._tw.fullwidth = 10 |
| 353 | tr.write("hello") |
| 354 | tr.rewrite("hey", erase=True) |
| 355 | assert f.getvalue() == "hello" + "\r" + "hey" + (6 * " ") |
| 356 | |
| 357 | @pytest.mark.parametrize("category", ["foo", "failed", "error", "passed"]) |
| 358 | def test_report_teststatus_explicit_markup( |
nothing calls this directly
no test coverage detected