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
+3 -3
View File
@@ -72,7 +72,7 @@ def temp_rbac_file(temp_volume_root):
@pytest.fixture
def valid_access_token(mock_config):
"""Generate a valid access token for testing."""
from auth import create_access_token
from auth_service import create_access_token
return create_access_token(
data={"sub": "testuser", "role": "admin"},
expires_delta=timedelta(minutes=30)
@@ -82,14 +82,14 @@ def valid_access_token(mock_config):
@pytest.fixture
def valid_refresh_token(mock_config, temp_auth_file):
"""Generate a valid refresh token for testing."""
from auth import create_refresh_token
from auth_service import create_refresh_token
return create_refresh_token(data={"sub": "testuser", "role": "admin"})
@pytest.fixture
def expired_access_token(mock_config):
"""Generate an expired access token for testing."""
from auth import create_access_token
from auth_service import create_access_token
return create_access_token(
data={"sub": "testuser", "role": "admin"},
expires_delta=timedelta(seconds=-1)