fixed mypy issue w/ burnettk
This commit is contained in:
parent
7079a2ca5b
commit
75b72ed536
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue