refine parsefactories interface, fix two_classes test originally reported by Alex Okrushko, also add a few more tests to make sure autouse-fixtures are properly distinguished

This commit is contained in:
holger krekel
2012-10-16 16:13:12 +02:00
parent ab4183d400
commit cc2337af3a
5 changed files with 83 additions and 39 deletions

View File

@@ -22,8 +22,7 @@ def pytest_pycollect_makeitem(collector, name, obj):
class UnitTestCase(pytest.Class):
def collect(self):
self.session._fixturemanager._parsefactories(self.obj, self.nodeid,
unittest=True)
self.session._fixturemanager.parsefactories(self, unittest=True)
loader = py.std.unittest.TestLoader()
module = self.getparent(pytest.Module).obj
cls = self.obj