Code cleanup: standardized imports, refined formatting for consistency, and resolved minor redundancies in services, models, monitoring, and tools modules.

This commit is contained in:
Yûki VACHOT 2025-11-29 00:49:36 +01:00
parent e486d78e31
commit ec0fe38861
39 changed files with 222 additions and 239 deletions

View file

@ -31,10 +31,7 @@ def mock_profile_data():
"created": "2025-01-01T00:00:00.000Z",
"isVerified": True,
"level": 50,
"rating": {
"rating": 1500,
"deviation": 100
}
"rating": {"rating": 1500, "deviation": 100},
}

View file

@ -1 +1 @@
"""Integration tests for GeoGuessr MCP Server."""
"""Integration tests for GeoGuessr MCP Server."""

View file

@ -1 +1 @@
# TODO
# TODO

View file

@ -1 +1 @@
# TODO
# TODO

View file

@ -1 +1 @@
"""Unit tests for GeoGuessr MCP Server."""
"""Unit tests for GeoGuessr MCP Server."""

View file

@ -19,10 +19,11 @@ TestSessionManager
login, logout, and session management operations in an async context.
"""
import pytest
from datetime import datetime, timedelta, UTC
from datetime import UTC, datetime, timedelta
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from geoguessr_mcp.auth.session import SessionManager, UserSession

View file

@ -8,8 +8,8 @@ objects, computation of schema hashes, and parsing of specific data formats
such as datetime strings, URLs, and UUIDs.
"""
from geoguessr_mcp.monitoring.schema.SchemaDetector import SchemaDetector
from geoguessr_mcp.monitoring.schema.EndpointSchema import SchemaField
from geoguessr_mcp.monitoring.schema.SchemaDetector import SchemaDetector
class TestSchemaDetector:
@ -94,7 +94,7 @@ class TestSchemaDetector:
"id": "123",
"profile": {
"name": "Test",
}
},
}
}

View file

@ -1 +1 @@
# TODO
# TODO

View file

@ -1 +1 @@
# TODO
# TODO

View file

@ -1 +1 @@
# TODO
# TODO