Refactor code for improved readability and consistency
- Cleaned up whitespace and formatting across multiple files for better readability.
This commit is contained in:
@@ -21,13 +21,13 @@ class TestAuthServiceJWTExtended:
|
||||
"""Test initializing AuthService with Flask app."""
|
||||
mock_getenv.side_effect = lambda key: {
|
||||
"GOOGLE_CLIENT_ID": "test_client_id",
|
||||
"GOOGLE_CLIENT_SECRET": "test_client_secret"
|
||||
"GOOGLE_CLIENT_SECRET": "test_client_secret",
|
||||
}.get(key)
|
||||
|
||||
|
||||
app = create_app()
|
||||
auth_service = AuthService()
|
||||
auth_service.init_app(app)
|
||||
|
||||
|
||||
# Verify OAuth was initialized
|
||||
assert auth_service.google is not None
|
||||
|
||||
@@ -39,10 +39,12 @@ class TestAuthServiceJWTExtended:
|
||||
with app.app_context():
|
||||
mock_response = Mock()
|
||||
mock_jsonify.return_value = mock_response
|
||||
|
||||
|
||||
auth_service = AuthService()
|
||||
result = auth_service.logout()
|
||||
|
||||
|
||||
assert result == mock_response
|
||||
mock_unset.assert_called_once_with(mock_response)
|
||||
mock_jsonify.assert_called_once_with({"message": "Logged out successfully"})
|
||||
mock_jsonify.assert_called_once_with(
|
||||
{"message": "Logged out successfully"}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user