2022-10-12 10:22:22 -04:00
|
|
|
"""Testing.py."""
|
2022-10-27 15:33:59 -04:00
|
|
|
import os
|
2022-10-27 15:38:04 -04:00
|
|
|
from os import environ
|
2022-10-12 10:22:22 -04:00
|
|
|
|
|
|
|
TESTING = True
|
|
|
|
SECRET_KEY = "the_secret_key"
|
|
|
|
SPIFFWORKFLOW_BACKEND_LOG_TO_FILE = (
|
|
|
|
environ.get("SPIFFWORKFLOW_BACKEND_LOG_TO_FILE", default="true") == "true"
|
|
|
|
)
|
2022-10-12 15:28:52 -04:00
|
|
|
|
|
|
|
SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME = environ.get(
|
|
|
|
"SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME", default="testing.yml"
|
|
|
|
)
|
2022-10-20 16:00:12 -04:00
|
|
|
|
|
|
|
SPIFFWORKFLOW_BACKEND_LOG_LEVEL = environ.get(
|
|
|
|
"SPIFFWORKFLOW_BACKEND_LOG_LEVEL", default="debug"
|
|
|
|
)
|
2022-10-27 15:33:59 -04:00
|
|
|
|
|
|
|
# NOTE: set this here since nox shoves tests and src code to
|
|
|
|
# different places and this allows us to know exactly where we are at the start
|
|
|
|
BPMN_SPEC_ABSOLUTE_DIR = os.path.join(
|
|
|
|
os.path.dirname(__file__),
|
2022-11-04 10:50:55 -04:00
|
|
|
"..",
|
|
|
|
"..",
|
|
|
|
"..",
|
2022-10-27 15:33:59 -04:00
|
|
|
"tests",
|
|
|
|
"spiffworkflow_backend",
|
|
|
|
"files",
|
|
|
|
"bpmn_specs",
|
|
|
|
)
|