mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-13 03:34:30 +00:00
883e65384f
git-subtree-dir: spiffworkflow-backend git-subtree-split: 50f28073add91265f00826bd175c8b2fff76cdc5
14 lines
469 B
Python
14 lines
469 B
Python
"""This is my docstring."""
|
|
import os
|
|
|
|
from spiffworkflow_backend import create_app
|
|
from spiffworkflow_backend.services.acceptance_test_fixtures import load_fixtures
|
|
|
|
app = create_app()
|
|
|
|
# this is in here because when we put it in the create_app function,
|
|
# it also loaded when we were running migrations, which resulted in a chicken/egg thing.
|
|
if os.environ.get("SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA") == "true":
|
|
with app.app_context():
|
|
load_fixtures()
|