cteward-ng/cteward_ng/tests/conftest.py

23 lines
456 B
Python
Raw Normal View History

2026-06-06 10:18:15 +02:00
"""Test fixtures and app factory for the test suite.
Replaces test/000-startup.js bootstrap logic.
"""
import pytest
from cteward_ng.app import create_app
@pytest.fixture
def app():
"""Create a test Flask app using the test config."""
app = create_app(config_path='st-lexware-test.json')
app.config['TESTING'] = True
return app
@pytest.fixture
def client(app):
"""Test client for making requests."""
return app.test_client()