(self, pytester: Pytester, linecomp)
| 127 | assert lines[2] == "hello world" |
| 128 | |
| 129 | def test_show_runtest_logstart(self, pytester: Pytester, linecomp) -> None: |
| 130 | item = pytester.getitem("def test_func(): pass") |
| 131 | tr = TerminalReporter(item.config, file=linecomp.stringio) |
| 132 | item.config.pluginmanager.register(tr) |
| 133 | location = item.reportinfo() |
| 134 | tr.config.hook.pytest_runtest_logstart( |
| 135 | nodeid=item.nodeid, location=location, fspath=str(item.path) |
| 136 | ) |
| 137 | linecomp.assert_contains_lines(["*test_show_runtest_logstart.py*"]) |
| 138 | |
| 139 | def test_runtest_location_shown_before_test_starts( |
| 140 | self, pytester: Pytester |
nothing calls this directly
no test coverage detected