-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_app_import.py
More file actions
35 lines (29 loc) · 998 Bytes
/
test_app_import.py
File metadata and controls
35 lines (29 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
"""
Test script to verify app import and router registration
"""
try:
print("🔍 Testing app import...")
from pseudoscribe.api.app import app
print("✅ App imported successfully")
print("\n🔍 Testing router registration...")
routes = []
for route in app.routes:
if hasattr(route, 'path'):
routes.append(f"{route.methods} {route.path}")
print(f"📋 Found {len(routes)} routes:")
for route in sorted(routes):
print(f" {route}")
# Check for Ollama routes specifically
ollama_routes = [r for r in routes if 'ollama' in r.lower()]
print(f"\n🤖 Ollama routes ({len(ollama_routes)}):")
for route in ollama_routes:
print(f" {route}")
if ollama_routes:
print("✅ Ollama routes found!")
else:
print("❌ No Ollama routes found!")
except Exception as e:
print(f"❌ Import failed: {e}")
import traceback
traceback.print_exc()