refaktorálás javításai
This commit is contained in:
28
test_analytics_import.py
Normal file
28
test_analytics_import.py
Normal 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.")
|
||||
Reference in New Issue
Block a user