fixed mypy issue w/ burnettk

This commit is contained in:
jasquat 2022-05-20 16:51:03 -04:00
parent 7079a2ca5b
commit 75b72ed536
3 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ jobs:
container port: 3306
mysql version: "8.0"
mysql database: "spiff_workflow_webapp_testing"
mysql root password: "password"
mysql root password:
if: matrix.database == 'mysql'
- name: Run Nox

View File

@ -34,7 +34,7 @@ nox.options.sessions = (
)
def setup_database(session: Session):
def setup_database(session: Session) -> None:
"""Run database migrations against the database."""
session.env["FLASK_INSTANCE_PATH"] = os.path.join(os.getcwd(), "instance")
session.env["FLASK_APP"] = "src/spiff_workflow_webapp"

View File

@ -23,7 +23,7 @@ def setup_config(app: Flask) -> None:
else:
app.config[
"SQLALCHEMY_DATABASE_URI"
] = f"mysql+mysqlconnector://root:password@localhost/spiff_workflow_webapp_{app.env}"
] = f"mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_{app.env}"
try:
app.config.from_object("spiff_workflow_webapp.config." + app.env)