try to help nox / ci

This commit is contained in:
burnettk 2022-06-20 17:48:21 -04:00
parent e58b55e40c
commit 1a74f758a7
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ def setup_database(session: Session) -> None:
session.env["FLASK_INSTANCE_PATH"] = os.path.join( session.env["FLASK_INSTANCE_PATH"] = os.path.join(
os.getcwd(), "instance", "testing" os.getcwd(), "instance", "testing"
) )
flask_env_key = "FLASK_SESSION_SECRET_KEY"
session.env[flask_env_key] = "super_secret_key"
session.env["FLASK_APP"] = "src/spiffworkflow_backend" session.env["FLASK_APP"] = "src/spiffworkflow_backend"
session.env["FLASK_ENV"] = "testing" session.env["FLASK_ENV"] = "testing"
session.run("flask", "db", "upgrade") session.run("flask", "db", "upgrade")