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

View File

@@ -300,9 +300,8 @@ class TestWithFunctionIntegration:
archive.init_db()
return archive
def test_collection_report(self, plugintester):
def test_collection_report(self, testdir):
py.test.skip("Needs a rewrite for db version.")
testdir = plugintester.testdir()
ok = testdir.makepyfile(test_collection_ok="")
skip = testdir.makepyfile(test_collection_skip="import py ; py.test.skip('hello')")
fail = testdir.makepyfile(test_collection_fail="XXX")
@@ -360,9 +359,7 @@ class TestWithFunctionIntegration:
assert entry_lines[-1][0] == ' '
assert 'ValueError' in entry
def test_generic(plugintester):
plugintester.hookcheck()
testdir = plugintester.testdir()
def test_generic(testdir):
testdir.makepyfile("""
import py
def test_pass():