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 <
import pytest class Test: @pytest.fixture() def setUp(self): print("setup") yield "resource" print("teardown") def test_that_depends_on_resource(self, setUp): print("testing {}".format(setUp))
In order to run:
pytest nam_of_the_module.py -v