22 lines
456 B
Python
22 lines
456 B
Python
"""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()
|