#!/usr/bin/env python3 | |
""" | |
Test script to verify backend imports work correctly | |
""" | |
import sys | |
import os | |
from pathlib import Path | |
# Add the project root to the Python path | |
project_root = Path(__file__).parent | |
sys.path.insert(0, str(project_root)) | |
print("Testing backend imports...") | |
try: | |
# Test the import that was failing | |
from backend.services.content_service import ContentService | |
print("[SUCCESS] Successfully imported ContentService") | |
except ImportError as e: | |
print(f"[ERROR] Failed to import ContentService: {e}") | |
try: | |
# Test another service import | |
from backend.services.linkedin_service import LinkedInService | |
print("[SUCCESS] Successfully imported LinkedInService") | |
except ImportError as e: | |
print(f"[ERROR] Failed to import LinkedInService: {e}") | |
try: | |
# Test importing the app | |
from backend.app import create_app | |
print("[SUCCESS] Successfully imported create_app") | |
except ImportError as e: | |
print(f"[ERROR] Failed to import create_app: {e}") | |
print("Import test completed.") |