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