fix: update test imports from auth to auth_service
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 1m42s
Run Tests / Backend Tests (push) Has started running
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Gan, Jimmy
2026-04-02 09:12:48 +08:00
parent a4782ecb1c
commit e1fc23981f
5 changed files with 9 additions and 9 deletions
@@ -135,7 +135,7 @@ class TestDockerPermissions:
@pytest.fixture
def member_token(self, mock_config, temp_auth_file, temp_rbac_file):
"""Create token for member role."""
from auth import create_access_token
from auth_service import create_access_token
from datetime import timedelta
return create_access_token(
data={"sub": "memberuser", "role": "member"},
@@ -166,7 +166,7 @@ class TestDockerPermissions:
def test_viewer_can_list_containers(self, test_app, mock_config, temp_auth_file, temp_rbac_file):
"""Test that viewer can list containers if they have docker page access."""
from auth import create_access_token
from auth_service import create_access_token
from datetime import timedelta
viewer_token = create_access_token(