-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinline_test.py
More file actions
57 lines (49 loc) · 1.83 KB
/
inline_test.py
File metadata and controls
57 lines (49 loc) · 1.83 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import sys
import os
# Add project root to path dynamically
project_root = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, project_root)
print("Testing consciousness integrations...")
print()
# Test 1: Bootstrap exists
try:
from backend.core.consciousness_engine import ConsciousnessEngine
engine = ConsciousnessEngine()
assert hasattr(engine, 'bootstrap_consciousness')
print("✓ Bootstrap sequence exists")
except Exception as e:
print(f"✗ Bootstrap: {e}")
# Test 2: Unified consciousness
try:
from backend.core.unified_consciousness_engine import UnifiedConsciousnessEngine
unified_engine = UnifiedConsciousnessEngine()
assert hasattr(unified_engine, 'assess_unified_consciousness')
print("✓ Unified consciousness engine integration exists")
except Exception as e:
print(f"✗ Unified: {e}")
# Test 3: Goal system
try:
from backend.goal_management_system import GoalManagementSystem
gs = GoalManagementSystem()
assert hasattr(gs, '_generate_goal_phenomenal_experience')
print("✓ Goal phenomenal integration exists")
except Exception as e:
print(f"✗ Goals: {e}")
# Test 4: Metacognition
try:
from backend.core.metacognitive_monitor import MetaCognitiveMonitor
mm = MetaCognitiveMonitor()
assert hasattr(mm, '_update_consciousness_recursive_depth')
print("✓ Metacognition recursive depth exists")
except Exception as e:
print(f"✗ Metacog: {e}")
# Test 5: Knowledge graph
try:
from backend.core.knowledge_graph_evolution import KnowledgeGraphEvolution
kg = KnowledgeGraphEvolution()
assert hasattr(kg, '_generate_emergence_phenomenal_experience')
print("✓ Knowledge graph phenomenal integration exists")
except Exception as e:
print(f"✗ KG: {e}")
print()
print("All imports successful! Integration code is syntactically correct.")