@@ -304,7 +304,25 @@ def pytest_runtest_protocol(item, nextitem):
304304
305305
306306def pytest_runtest_logstart (nodeid , location ):
307- """ signal the start of running a single test item. """
307+ """ signal the start of running a single test item.
308+
309+ This hook will be called **before** :func:`pytest_runtest_setup`, :func:`pytest_runtest_call` and
310+ :func:`pytest_runtest_teardown` hooks.
311+
312+ :param str nodeid: full id of the item
313+ :param location: a triple of ``(filename, linenum, testname)``
314+ """
315+
316+
317+ def pytest_runtest_logfinish (nodeid , location ):
318+ """ signal the complete finish of running a single test item.
319+
320+ This hook will be called **after** :func:`pytest_runtest_setup`, :func:`pytest_runtest_call` and
321+ :func:`pytest_runtest_teardown` hooks.
322+
323+ :param str nodeid: full id of the item
324+ :param location: a triple of ``(filename, linenum, testname)``
325+ """
308326
309327
310328def pytest_runtest_setup (item ):
@@ -445,7 +463,7 @@ def pytest_terminal_summary(terminalreporter, exitstatus):
445463def pytest_logwarning (message , code , nodeid , fslocation ):
446464 """ process a warning specified by a message, a code string,
447465 a nodeid and fslocation (both of which may be None
448- if the warning is not tied to a partilar node/location)."""
466+ if the warning is not tied to a particular node/location)."""
449467
450468# -------------------------------------------------------------------------
451469# doctest hooks
0 commit comments