oedb-backend/test_app_init.py

16 lines
381 B
Python
Raw Normal View History

2025-09-21 16:57:24 +02:00
#!/usr/bin/env python3
"""
Test script to verify that the application initializes correctly.
"""
import sys
from backend import create_app
try:
print("Attempting to initialize the application...")
app = create_app()
print("Application initialized successfully!")
sys.exit(0)
except Exception as e:
print(f"Error initializing application: {e}")
sys.exit(1)