feat: Update CORS origins to allow Chrome extensions and improve logging in migration tool
This commit is contained in:
@@ -196,7 +196,7 @@ class TestApiTokenDependencies:
|
||||
) -> None:
|
||||
"""Test flexible authentication falls back to JWT when no API token."""
|
||||
# Mock the get_current_user function (normally imported)
|
||||
with pytest.raises(Exception, match="Database error|Could not validate"):
|
||||
with pytest.raises(Exception, match=r"Database error|Could not validate"):
|
||||
# This will fail because we can't easily mock the get_current_user import
|
||||
# In a real test, you'd mock the import or use dependency injection
|
||||
await get_current_user_flexible(mock_auth_service, "jwt_token", None)
|
||||
|
||||
Reference in New Issue
Block a user