refaktorálás javításai

This commit is contained in:
Roo
2026-03-13 10:22:41 +00:00
parent 2d8d23f469
commit f53e0b53df
140 changed files with 7316 additions and 4579 deletions

28
test_analytics_import.py Normal file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env python3
"""
Quick test to verify analytics module imports correctly.
"""
import sys
sys.path.insert(0, '/opt/docker/dev/service_finder/backend')
try:
from app.api.v1.endpoints.analytics import router
print("✓ Analytics router imported successfully")
print(f"Router prefix: {router.prefix}")
print(f"Router tags: {router.tags}")
except ImportError as e:
print(f"✗ Import error: {e}")
sys.exit(1)
except Exception as e:
print(f"✗ Unexpected error: {e}")
sys.exit(1)
# Try importing schemas
try:
from app.schemas.analytics import TCOSummaryResponse
print("✓ Analytics schemas imported successfully")
except ImportError as e:
print(f"✗ Schemas import error: {e}")
sys.exit(1)
print("All imports passed.")