aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth/fixtures
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-07 07:19:16 +0300
committerFrederick Muriuki Muriithi2023-08-07 09:26:11 +0300
commitc9f35e54d5d894051ceb446d1dce54915dcb20f6 (patch)
treec2bfc7bd6b7feab4b7418770f05e7d6ab43623da /tests/unit/auth/fixtures
parentb7f5cd0d788748559ca5e9768f3ea35d45442ef6 (diff)
downloadgn-auth-c9f35e54d5d894051ceb446d1dce54915dcb20f6.tar.gz
Update module name/path
Change from gn3 to gn_auth
Diffstat (limited to 'tests/unit/auth/fixtures')
-rw-r--r--tests/unit/auth/fixtures/group_fixtures.py6
-rw-r--r--tests/unit/auth/fixtures/migration_fixtures.py4
-rw-r--r--tests/unit/auth/fixtures/oauth2_client_fixtures.py6
-rw-r--r--tests/unit/auth/fixtures/resource_fixtures.py2
-rw-r--r--tests/unit/auth/fixtures/role_fixtures.py6
-rw-r--r--tests/unit/auth/fixtures/user_fixtures.py4
6 files changed, 14 insertions, 14 deletions
diff --git a/tests/unit/auth/fixtures/group_fixtures.py b/tests/unit/auth/fixtures/group_fixtures.py
index d7bbc56..b2bae24 100644
--- a/tests/unit/auth/fixtures/group_fixtures.py
+++ b/tests/unit/auth/fixtures/group_fixtures.py
@@ -3,9 +3,9 @@ import uuid
import pytest
-from gn3.auth import db
-from gn3.auth.authorisation.groups import Group, GroupRole
-from gn3.auth.authorisation.resources import Resource, ResourceCategory
+from gn_auth.auth import db
+from gn_auth.auth.authorisation.groups import Group, GroupRole
+from gn_auth.auth.authorisation.resources import Resource, ResourceCategory
from .role_fixtures import RESOURCE_EDITOR_ROLE, RESOURCE_READER_ROLE
diff --git a/tests/unit/auth/fixtures/migration_fixtures.py b/tests/unit/auth/fixtures/migration_fixtures.py
index eb42c2b..2a67c01 100644
--- a/tests/unit/auth/fixtures/migration_fixtures.py
+++ b/tests/unit/auth/fixtures/migration_fixtures.py
@@ -4,8 +4,8 @@ from yoyo.backends import DatabaseBackend
from yoyo import get_backend, read_migrations
from yoyo.migrations import Migration, MigrationList
-from gn3.auth import db
-from gn3.migrations import apply_migrations, rollback_migrations
+from gn_auth.auth import db
+from gn_auth.migrations import apply_migrations, rollback_migrations
@pytest.fixture(scope="session")
def auth_testdb_path(fxtr_app_config): # pylint: disable=redefined-outer-name
diff --git a/tests/unit/auth/fixtures/oauth2_client_fixtures.py b/tests/unit/auth/fixtures/oauth2_client_fixtures.py
index 654d048..70cd2c2 100644
--- a/tests/unit/auth/fixtures/oauth2_client_fixtures.py
+++ b/tests/unit/auth/fixtures/oauth2_client_fixtures.py
@@ -5,9 +5,9 @@ import datetime
import pytest
-from gn3.auth import db
-from gn3.auth.authentication.users import hash_password
-from gn3.auth.authentication.oauth2.models.oauth2client import OAuth2Client
+from gn_auth.auth import db
+from gn_auth.auth.authentication.users import hash_password
+from gn_auth.auth.authentication.oauth2.models.oauth2client import OAuth2Client
@pytest.fixture(autouse=True)
def fxtr_patch_envvars(monkeypatch):
diff --git a/tests/unit/auth/fixtures/resource_fixtures.py b/tests/unit/auth/fixtures/resource_fixtures.py
index 117b4f4..efe617e 100644
--- a/tests/unit/auth/fixtures/resource_fixtures.py
+++ b/tests/unit/auth/fixtures/resource_fixtures.py
@@ -1,7 +1,7 @@
"""Fixtures and utilities for resource-related tests"""
import pytest
-from gn3.auth import db
+from gn_auth.auth import db
from .group_fixtures import TEST_RESOURCES
diff --git a/tests/unit/auth/fixtures/role_fixtures.py b/tests/unit/auth/fixtures/role_fixtures.py
index ee86aa2..c97716f 100644
--- a/tests/unit/auth/fixtures/role_fixtures.py
+++ b/tests/unit/auth/fixtures/role_fixtures.py
@@ -3,9 +3,9 @@ import uuid
import pytest
-from gn3.auth import db
-from gn3.auth.authorisation.roles import Role
-from gn3.auth.authorisation.privileges import Privilege
+from gn_auth.auth import db
+from gn_auth.auth.authorisation.roles import Role
+from gn_auth.auth.authorisation.privileges import Privilege
RESOURCE_READER_ROLE = Role(
uuid.UUID("c3ca2507-ee24-4835-9b31-8c21e1c072d3"), "resource_reader", True,
diff --git a/tests/unit/auth/fixtures/user_fixtures.py b/tests/unit/auth/fixtures/user_fixtures.py
index d248f54..21708a5 100644
--- a/tests/unit/auth/fixtures/user_fixtures.py
+++ b/tests/unit/auth/fixtures/user_fixtures.py
@@ -3,8 +3,8 @@ import uuid
import pytest
-from gn3.auth import db
-from gn3.auth.authentication.users import User, hash_password
+from gn_auth.auth import db
+from gn_auth.auth.authentication.users import User, hash_password
TEST_USERS = (
User(uuid.UUID("ecb52977-3004-469e-9428-2a1856725c7f"), "group@lead.er",