* rename testrunstart/finish to sessionstart and pass it an argument

* simplify pyexecnetcleanup plugin

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-05-22 21:53:26 +02:00
parent bcd9aed0b1
commit db2ef3e9e8
7 changed files with 29 additions and 38 deletions

View File

@@ -23,17 +23,15 @@ class PluginHooks:
# test Session related hooks
# ------------------------------------------------------------------------------
def pytest_testrunstart(self):
""" whole test run starts. """
def pytest_sessionstart(self, session):
""" before session.main() is called. """
def pytest_testrunfinish(self, exitstatus, excrepr=None):
def pytest_sessionfinish(self, session, exitstatus, excrepr=None):
""" whole test run finishes. """
def pytest_deselected(self, items):
""" collected items that were deselected (by keyword). """
# ------------------------------------------------------------------------------
# collection hooks
# ------------------------------------------------------------------------------