v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- 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>
This commit is contained in:
26
visual_workflow_builder/backend/tests/conftest.py
Normal file
26
visual_workflow_builder/backend/tests/conftest.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
Pytest configuration and fixtures for Visual Workflow Builder tests
|
||||
"""
|
||||
|
||||
import pytest
|
||||
from app import app, db
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
"""Create a test client for the Flask app"""
|
||||
app.config['TESTING'] = True
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
|
||||
|
||||
with app.test_client() as client:
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
yield client
|
||||
db.drop_all()
|
||||
|
||||
@pytest.fixture
|
||||
def app_context():
|
||||
"""Create an application context for tests"""
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
yield app
|
||||
db.drop_all()
|
||||
Reference in New Issue
Block a user