python - Do fixtures defined within a Nose test class get called between functions? -
suppose have test class:
class testfoo(): def bar(): #assert stuff def baz(): #assert stuff def setup(): config = {"stuff": "morestuff"} def teardown(): cleanup()
are fixtures(setup , teardown) supposed called between function calls (bar , baz)? or setup called when test class gets instantiated? ideally, fixtures called between function calls.
i read documentation on , wasn't clear enough me.
setup()
, teardown()
methods called right before , after every test method.
if need called once before of test methods in test case class executed - define setupclass()
class method, if once after methods executed - define teardownclass()
class method.
Comments
Post a Comment