Markdown / tests /conftest.py
GauthierDemonchy
Premier commit propre
898ed62
Raw
History Blame Contribute Delete
258 Bytes
"""Fixtures partagées pour les tests."""
import pytest
from app import app as flask_app
@pytest.fixture
def client():
"""Client de test Flask."""
flask_app.config["TESTING"] = True
with flask_app.test_client() as client:
yield client