integrate plugin hook checking directly when registering

remove plugintester plugin, all functionality now in testdir

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-05-22 23:50:35 +02:00
parent db2ef3e9e8
commit a93918a480
24 changed files with 106 additions and 183 deletions
-19
View File
@@ -327,22 +327,3 @@ class CoveragePlugin:
self.coverage.start()
# ===============================================================================
# plugin tests
# ===============================================================================
# XXX
'''
def test_generic(plugintester):
plugintester.apicheck(EventlogPlugin)
testdir = plugintester.testdir()
testdir.makepyfile("""
def test_pass():
pass
""")
testdir.runpytest("--eventlog=event.log")
s = testdir.tmpdir.join("event.log").read()
assert s.find("TestrunStart") != -1
assert s.find("ItemTestReport") != -1
assert s.find("TestrunFinish") != -1
'''