implement fixture information stored on the parentnode of functions

to be reused by metafunc mechanics and Function setup
This commit is contained in:
holger krekel
2012-10-16 13:47:59 +02:00
parent 4541456a96
commit 021c087701
4 changed files with 74 additions and 30 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class TestCaseFunction(pytest.Function):
_excinfo = None
def _getfuncargnames(self):
return []
return ()
def setup(self):
self._testcase = self.parent.obj(self.name)