Cache selenium fixture at the module level

This commit is contained in:
Roman Yurchak 2018-08-17 16:32:17 +03:00
parent b47713d4f2
commit 6b51f3a21e
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class ChromeWrapper(SeleniumWrapper):
if pytest is not None:
@pytest.fixture(params=['firefox', 'chrome'])
@pytest.fixture(params=['firefox', 'chrome'], scope='module')
def selenium(request):
if request.param == 'firefox':
cls = FirefoxWrapper