From 6d61ef8de94fa87cb6ee31cc57f1f37dd04d097d Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 24 Apr 2024 11:34:09 +0300 Subject: Move the errors module up one level to break circular dependencies. --- tests/unit/auth/test_groups.py | 2 +- tests/unit/auth/test_resources.py | 2 +- tests/unit/auth/test_roles.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/auth') diff --git a/tests/unit/auth/test_groups.py b/tests/unit/auth/test_groups.py index a6a0da5..c9d8b19 100644 --- a/tests/unit/auth/test_groups.py +++ b/tests/unit/auth/test_groups.py @@ -5,10 +5,10 @@ import pytest from pymonad.maybe import Nothing from gn_auth.auth.db import sqlite3 as db +from gn_auth.auth.errors import AuthorisationError from gn_auth.auth.authentication.users import User from gn_auth.auth.authorisation.roles import Role from gn_auth.auth.authorisation.privileges import Privilege -from gn_auth.auth.authorisation.errors import AuthorisationError from gn_auth.auth.authorisation.resources.groups.models import ( Group, GroupRole, user_group, create_group, create_group_role) diff --git a/tests/unit/auth/test_resources.py b/tests/unit/auth/test_resources.py index 9b4d0e7..85641be 100644 --- a/tests/unit/auth/test_resources.py +++ b/tests/unit/auth/test_resources.py @@ -4,8 +4,8 @@ import uuid import pytest from gn_auth.auth.db import sqlite3 as db +from gn_auth.auth.errors import AuthorisationError -from gn_auth.auth.authorisation.errors import AuthorisationError from gn_auth.auth.authorisation.resources.groups import Group from gn_auth.auth.authorisation.resources.models import ( Resource, user_resources, create_resource, ResourceCategory, diff --git a/tests/unit/auth/test_roles.py b/tests/unit/auth/test_roles.py index 6c8dbae..00148a0 100644 --- a/tests/unit/auth/test_roles.py +++ b/tests/unit/auth/test_roles.py @@ -4,8 +4,8 @@ import uuid import pytest from gn_auth.auth.db import sqlite3 as db +from gn_auth.auth.errors import AuthorisationError from gn_auth.auth.authorisation.privileges import Privilege -from gn_auth.auth.authorisation.errors import AuthorisationError from gn_auth.auth.authorisation.roles.models import Role, user_roles, create_role from tests.unit.auth import conftest -- cgit v1.2.3