Hello,
Well, it depends on your needs. First you can have a teardown phase on the fixture itself:
@lcc.fixture()
def browser():
browser = [some kind of browser creation code]
yield browser
browser.quit()
Secondly, if you use a class as a test suite, you can keep track of the fixture in your setup_suite and then use it in the teardown_suite:
@lcc.suite()
class MySuite:
def setup_suite(self, browser):
self.browser = browser
[ ... some tests ... ]
def teardown_suite(self):
[... do something with self.browser .... ]
I hope it answers your question.
Regards,
Nicolas.