Add support for the new pytest_runtest_logfinish hook (pytest 3.4)

This commit is contained in:
Bruno Oliveira
2018-01-10 17:52:27 -02:00
parent 4dc86a1dad
commit 449e6c2e00
4 changed files with 32 additions and 1 deletions

View File

@@ -235,6 +235,11 @@ class DSession:
self.config.hook.pytest_runtest_logstart(
nodeid=nodeid, location=location)
def slave_logfinish(self, node, nodeid, location):
"""Emitted when a node calls the pytest_runtest_logfinish hook."""
self.config.hook.pytest_runtest_logfinish(
nodeid=nodeid, location=location)
def slave_testreport(self, node, rep):
"""Emitted when a node calls the pytest_runtest_logreport hook."""
rep.node = node