implement pytest.mark.usefixtures and ini-file usefixtures setting

and also refine fixture docs a bit - fixtures.txt should now mostly
reflect the current state of the implementation
This commit is contained in:
holger krekel
2012-10-05 19:20:40 +02:00
parent 4cbb2ab3b3
commit d8c365ef2c
5 changed files with 192 additions and 107 deletions

View File

@@ -53,7 +53,7 @@ class TestCaseFunction(pytest.Function):
_excinfo = None
def _getfuncargnames(self):
return list(self.session._fixturemanager._autofixtures)
return []
def setup(self):
self._testcase = self.parent.obj(self.name)