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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user