From 47fcd32111ada4137c1f9aa4eecb0911a3060401 Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 7 Aug 2018 15:45:36 +0000 Subject: [PATCH] Made the test fixtures session-scoped. --- conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index fa65659..ff548c2 100644 --- a/conftest.py +++ b/conftest.py @@ -29,7 +29,7 @@ def pytest_addoption( parser ): # --------------------------------------------------------------------- -@pytest.fixture +@pytest.fixture( scope="session" ) def webapp(): """Launch the webapp.""" @@ -75,7 +75,7 @@ def webapp(): # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@pytest.fixture +@pytest.fixture( scope="session" ) def test_client(): """Return a test client that can be used to connect to the webapp.""" logging.disable( logging.CRITICAL ) @@ -83,7 +83,7 @@ def test_client(): # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@pytest.fixture +@pytest.fixture( scope="session" ) def webdriver(): """Return a webdriver that can be used to control a browser.