[svn r63630] some more code to prepare for substituting the

fixture/runtest code, using more plugins.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-04 22:19:18 +02:00
parent ba6eca8da4
commit b2077ed2ec
7 changed files with 146 additions and 93 deletions

View File

@@ -17,6 +17,11 @@ class DefaultPlugin:
from py.__.test import runner
return runner.ItemTestReport(item, excinfo, when, outerr)
def pyevent__item_runtest_finished(self, item, excinfo, outerr):
from py.__.test import runner
rep = runner.ItemTestReport(item, excinfo, "execute", outerr)
item.config.pytestplugins.notify("itemtestreport", rep)
def pytest_pyfunc_call(self, pyfuncitem, args, kwargs):
pyfuncitem.obj(*args, **kwargs)