2022-06-08 16:14:39 +00:00
|
|
|
"""This is my docstring."""
|
2022-06-23 20:35:02 +00:00
|
|
|
import os
|
2022-06-01 18:50:44 +00:00
|
|
|
|
|
|
|
from spiffworkflow_backend import create_app
|
2022-06-23 20:35:02 +00:00
|
|
|
from spiffworkflow_backend.services.acceptance_test_fixtures import load_fixtures
|
2022-06-01 18:50:44 +00:00
|
|
|
|
|
|
|
app = create_app()
|
|
|
|
|
2022-06-27 20:59:59 +00:00
|
|
|
# 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.
|
2022-06-23 20:35:02 +00:00
|
|
|
if os.environ.get("SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA") == "true":
|
|
|
|
with app.app_context():
|
|
|
|
load_fixtures()
|