Refactor code for improved readability and consistency

- Cleaned up whitespace and formatting across multiple files for better readability.
This commit is contained in:
JSC
2025-07-02 10:37:48 +02:00
parent e63c7a0767
commit 171dbb9b63
19 changed files with 361 additions and 260 deletions

View File

@@ -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"}
)