summaryrefslogtreecommitdiff
path: root/src/_pytest/hookspec.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-06-14 12:49:05 +0300
committerRan Benita <ran@unusedvar.com>2020-06-14 12:51:06 +0300
commit314d00968a0e5d3532fde41297ffa884b6d548bb (patch)
tree70494fcb5955205e3fc32969a1007649b431f508 /src/_pytest/hookspec.py
parentbb7b3af9b95bafe633a2a5136e78dcf1d686c4de (diff)
downloadpytest-314d00968a0e5d3532fde41297ffa884b6d548bb.tar.gz
hookspec: type annotate pytest_runtest_log{start,finish}
Diffstat (limited to 'src/_pytest/hookspec.py')
-rw-r--r--src/_pytest/hookspec.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py
index 4469f5078..a893517aa 100644
--- a/src/_pytest/hookspec.py
+++ b/src/_pytest/hookspec.py
@@ -396,7 +396,9 @@ def pytest_runtest_protocol(
Stops at first non-None result, see :ref:`firstresult` """
-def pytest_runtest_logstart(nodeid, location):
+def pytest_runtest_logstart(
+ nodeid: str, location: Tuple[str, Optional[int], str]
+) -> None:
""" signal the start of running a single test item.
This hook will be called **before** :func:`pytest_runtest_setup`, :func:`pytest_runtest_call` and
@@ -407,7 +409,9 @@ def pytest_runtest_logstart(nodeid, location):
"""
-def pytest_runtest_logfinish(nodeid, location):
+def pytest_runtest_logfinish(
+ nodeid: str, location: Tuple[str, Optional[int], str]
+) -> None:
""" signal the complete finish of running a single test item.
This hook will be called **after** :func:`pytest_runtest_setup`, :func:`pytest_runtest_call` and