- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
886 B
Python
28 lines
886 B
Python
"""
|
|
Configuration pytest pour RPA Vision V3
|
|
|
|
Auteur: Dom, Alice Kiro - 15 décembre 2024
|
|
Objectif: Fiche #4 - Assurer que pytest trouve 'core' depuis n'importe où
|
|
|
|
Ce fichier garantit que:
|
|
- pytest fonctionne depuis la racine du projet
|
|
- pytest fonctionne depuis un IDE (PyCharm/VSCode)
|
|
- Les imports 'from core...' marchent partout
|
|
- Plus de problèmes PYTHONPATH
|
|
"""
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# S'assurer que la racine du projet est dans sys.path pour que `import core...` fonctionne partout
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
if str(ROOT) not in sys.path:
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
# Vérification que core est accessible
|
|
try:
|
|
import core
|
|
print(f"✅ Core module accessible depuis: {core.__file__}")
|
|
except ImportError as e:
|
|
print(f"❌ Erreur import core: {e}")
|
|
print(f" ROOT path: {ROOT}")
|
|
print(f" sys.path: {sys.path[:3]}...") |