File size: 1,032 Bytes
4b77a5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
36
#!/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.")