bmc_hub/keepforlater/test_routes.py
Christian a604a3cc44 Add comprehensive test suite for vTiger integration and ticket module
- Implemented test scripts for vTiger account retrieval, contact data, and modules.
- Created a detailed test suite for the ticket module, covering database schema validation, ticket number generation, prepaid card constraints, and service logic.
- Added tests for vTiger field inspection and various queries related to accounts and sales orders.
- Introduced SQL migration scripts for the ALSO Cloud Billing foundation, including import jobs, lines, and mapping tables with necessary constraints and indices.
- Enhanced workflow columns in the import lines table to support matching and validation timestamps.
2026-06-20 03:29:51 +02:00

18 lines
683 B
Python

#!/usr/bin/env python3
"""Test route registration"""
import main
frontend_routes = [r for r in main.app.routes if hasattr(r, 'path') and not r.path.startswith('/api')]
print(f"Found {len(frontend_routes)} frontend routes:")
for r in frontend_routes[:30]:
path = r.path if hasattr(r, 'path') else str(r)
endpoint_name = r.endpoint.__name__ if hasattr(r, 'endpoint') else 'N/A'
print(f" {path:50} -> {endpoint_name}")
# Check timetracking specifically
timetracking_routes = [r for r in main.app.routes if hasattr(r, 'path') and 'timetracking' in r.path]
print(f"\nTimetracking routes: {len(timetracking_routes)}")
for r in timetracking_routes:
print(f" {r.path}")