Brian S. Stephan
053e3d96a3
one step closer to actual functionality, attempt to load the resolved markdown file in the instance directory, or 404 if it doesn't exist
21 lines
336 B
Python
21 lines
336 B
Python
"""Create the test app and other fixtures."""
|
|
import os
|
|
|
|
import pytest
|
|
|
|
from incorporealcms import create_app
|
|
|
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
@pytest.fixture
|
|
def app():
|
|
app = create_app(instance_path=os.path.join(HERE, 'instance'))
|
|
|
|
yield app
|
|
|
|
|
|
@pytest.fixture
|
|
def client(app):
|
|
return app.test_client()
|