diff --git a/tests/test_api.py b/tests/test_api.py index 05929342..24bfbc65 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -9,9 +9,9 @@ from .fixtures import ( import pytest import urllib -pytest.fixture(scope='module')(app_client) -pytest.fixture(scope='module')(app_client_shorter_time_limit) -pytest.fixture(scope='module')(app_client_returend_rows_matches_page_size) +pytest.fixture(scope='session')(app_client) +pytest.fixture(scope='session')(app_client_shorter_time_limit) +pytest.fixture(scope='session')(app_client_returend_rows_matches_page_size) def test_homepage(app_client): diff --git a/tests/test_html.py b/tests/test_html.py index 79f3b581..cc227f7b 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -4,7 +4,7 @@ import pytest import re import urllib.parse -pytest.fixture(scope='module')(app_client) +pytest.fixture(scope='session')(app_client) def test_homepage(app_client): diff --git a/tests/test_inspect.py b/tests/test_inspect.py index 6cbfde26..954dcff7 100644 --- a/tests/test_inspect.py +++ b/tests/test_inspect.py @@ -35,7 +35,7 @@ CREATE TABLE "office" ( ''' -@pytest.fixture(scope='module') +@pytest.fixture(scope='session') def ds_instance(): with tempfile.TemporaryDirectory() as tmpdir: filepath = os.path.join(tmpdir, 'test_tables.db')