mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Extract user utility code into own module
This provides more room for expansion, and reduces the amount of arbitrary code in the __init__.py file for the new package.
This commit is contained in:
@@ -11,7 +11,7 @@ from app.models.roles_and_permissions import (
|
||||
translate_permissions_from_admin_roles_to_db,
|
||||
translate_permissions_from_db_to_admin_roles,
|
||||
)
|
||||
from app.utils import user_has_permissions
|
||||
from app.utils.user import user_has_permissions
|
||||
from tests import service_json
|
||||
from tests.conftest import (
|
||||
ORGANISATION_ID,
|
||||
|
||||
@@ -3,7 +3,7 @@ from flask import session, url_for
|
||||
from freezegun import freeze_time
|
||||
from notifications_python_client.errors import HTTPError
|
||||
|
||||
from app.utils import is_gov_user
|
||||
from app.utils.user import is_gov_user
|
||||
from tests import organisation_json
|
||||
from tests.conftest import normalize_spaces
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import pytest
|
||||
from flask import url_for
|
||||
|
||||
import app
|
||||
from app.utils import is_gov_user
|
||||
from app.utils.user import is_gov_user
|
||||
from tests.conftest import (
|
||||
ORGANISATION_ID,
|
||||
ORGANISATION_TWO_ID,
|
||||
|
||||
Reference in New Issue
Block a user