I am using selenium for end to end testing and I can\'t get how to use setup_class and teardown_class methods.
setup_class
teardown_class
I need to set up browser in <
Your code should work just as you expect it to if you add @classmethod decorators.
@classmethod
@classmethod def setup_class(cls): "Runs once per class" @classmethod def teardown_class(cls): "Runs at end of class"
See http://pythontesting.net/framework/pytest/pytest-xunit-style-fixtures/