hookspec: type annotate pytest_runtest_log{start,finish}

This commit is contained in:
Ran Benita
2020-06-14 12:49:05 +03:00
parent bb7b3af9b9
commit 314d00968a
3 changed files with 12 additions and 6 deletions

View File

@@ -653,12 +653,12 @@ class LoggingPlugin:
yield # run all the tests
@pytest.hookimpl
def pytest_runtest_logstart(self):
def pytest_runtest_logstart(self) -> None:
self.log_cli_handler.reset()
self.log_cli_handler.set_when("start")
@pytest.hookimpl
def pytest_runtest_logreport(self):
def pytest_runtest_logreport(self) -> None:
self.log_cli_handler.set_when("logreport")
def _runtest_for(self, item: nodes.Item, when: str) -> Generator[None, None, None]: