Made the test fixtures session-scoped.

master
Pacman Ghost 6 years ago
parent 2e84510353
commit 47fcd32111
  1. 6
      conftest.py

@ -29,7 +29,7 @@ def pytest_addoption( parser ):
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
@pytest.fixture @pytest.fixture( scope="session" )
def webapp(): def webapp():
"""Launch the webapp.""" """Launch the webapp."""
@ -75,7 +75,7 @@ def webapp():
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@pytest.fixture @pytest.fixture( scope="session" )
def test_client(): def test_client():
"""Return a test client that can be used to connect to the webapp.""" """Return a test client that can be used to connect to the webapp."""
logging.disable( logging.CRITICAL ) logging.disable( logging.CRITICAL )
@ -83,7 +83,7 @@ def test_client():
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@pytest.fixture @pytest.fixture( scope="session" )
def webdriver(): def webdriver():
"""Return a webdriver that can be used to control a browser. """Return a webdriver that can be used to control a browser.

Loading…
Cancel
Save