From 6b51f3a21ebc10ce49ae049e55c859a348dbab3b Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Fri, 17 Aug 2018 16:32:17 +0300 Subject: [PATCH] Cache selenium fixture at the module level --- test/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/conftest.py b/test/conftest.py index d5bf40318..1723a55fc 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -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