Initial commit
This commit is contained in:
43
test_orchestrator_fix.py
Executable file
43
test_orchestrator_fix.py
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Test rapide pour vérifier que l'Orchestrator peut être initialisé
|
||||
sans l'erreur AttributeError: '_on_suggestion_created'
|
||||
"""
|
||||
|
||||
import sys
|
||||
sys.path.insert(0, 'geniusia2')
|
||||
|
||||
print("🔍 Test de l'initialisation de l'Orchestrator...")
|
||||
print("=" * 60)
|
||||
|
||||
try:
|
||||
# Importer les dépendances
|
||||
print("\n1. Import des modules...")
|
||||
from core.orchestrator import Orchestrator
|
||||
print(" ✓ Orchestrator importé")
|
||||
|
||||
# Vérifier que les méthodes existent
|
||||
print("\n2. Vérification des méthodes de callback...")
|
||||
callback_methods = [
|
||||
'_on_suggestion_created',
|
||||
'_on_suggestion_accepted',
|
||||
'_on_suggestion_rejected',
|
||||
'_on_suggestion_timeout'
|
||||
]
|
||||
|
||||
for method in callback_methods:
|
||||
if hasattr(Orchestrator, method):
|
||||
print(f" ✓ {method}")
|
||||
else:
|
||||
print(f" ✗ {method} - MANQUANTE!")
|
||||
sys.exit(1)
|
||||
|
||||
print("\n✅ Tous les tests passent!")
|
||||
print(" L'Orchestrator devrait maintenant s'initialiser correctement.")
|
||||
print("\n💡 Vous pouvez maintenant lancer: geniusia2/run.sh")
|
||||
|
||||
except Exception as e:
|
||||
print(f"\n❌ Erreur: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
sys.exit(1)
|
||||
Reference in New Issue
Block a user