aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth/fixtures/migration_fixtures.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-01-03 05:49:53 +0300
committerFrederick Muriuki Muriithi2023-01-03 06:16:28 +0300
commitda33d719105d67afb1ee6b040380211cfa8be23d (patch)
tree825d77283b578c60058afba12fc786df4704d20e /tests/unit/auth/fixtures/migration_fixtures.py
parent27647b38fe1b183010d4c49bce5aa22ea2bb3f48 (diff)
downloadgenenetwork3-da33d719105d67afb1ee6b040380211cfa8be23d.tar.gz
auth: rename fixtures: test_* -> fxtr_*
Since test functions are defined starting with "test_", rename the fixture to more clearly indicate it is a fixture (fxtr_*), an not a test in itself.
Diffstat (limited to 'tests/unit/auth/fixtures/migration_fixtures.py')
-rw-r--r--tests/unit/auth/fixtures/migration_fixtures.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/auth/fixtures/migration_fixtures.py b/tests/unit/auth/fixtures/migration_fixtures.py
index 3e511b1..eb42c2b 100644
--- a/tests/unit/auth/fixtures/migration_fixtures.py
+++ b/tests/unit/auth/fixtures/migration_fixtures.py
@@ -8,14 +8,14 @@ from gn3.auth import db
from gn3.migrations import apply_migrations, rollback_migrations
@pytest.fixture(scope="session")
-def auth_testdb_path(test_app_config): # pylint: disable=redefined-outer-name
+def auth_testdb_path(fxtr_app_config): # pylint: disable=redefined-outer-name
"""Get the test application's auth database file"""
- return test_app_config["AUTH_DB"]
+ return fxtr_app_config["AUTH_DB"]
@pytest.fixture(scope="session")
-def auth_migrations_dir(test_app_config): # pylint: disable=redefined-outer-name
+def auth_migrations_dir(fxtr_app_config): # pylint: disable=redefined-outer-name
"""Get the test application's auth database file"""
- return test_app_config["AUTH_MIGRATIONS"]
+ return fxtr_app_config["AUTH_MIGRATIONS"]
def apply_single_migration(backend: DatabaseBackend, migration: Migration):# pylint: disable=[redefined-outer-name]
"""Utility to apply a single migration"""