diff options
author | Frederick Muriuki Muriithi | 2023-08-07 07:19:16 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-07 09:26:11 +0300 |
commit | c9f35e54d5d894051ceb446d1dce54915dcb20f6 (patch) | |
tree | c2bfc7bd6b7feab4b7418770f05e7d6ab43623da /tests/unit/auth/fixtures | |
parent | b7f5cd0d788748559ca5e9768f3ea35d45442ef6 (diff) | |
download | gn-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.py | 6 | ||||
-rw-r--r-- | tests/unit/auth/fixtures/migration_fixtures.py | 4 | ||||
-rw-r--r-- | tests/unit/auth/fixtures/oauth2_client_fixtures.py | 6 | ||||
-rw-r--r-- | tests/unit/auth/fixtures/resource_fixtures.py | 2 | ||||
-rw-r--r-- | tests/unit/auth/fixtures/role_fixtures.py | 6 | ||||
-rw-r--r-- | tests/unit/auth/fixtures/user_fixtures.py | 4 |
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", |