fix ci errors w/ burnettk
This commit is contained in:
parent
66d16ae409
commit
a62aca04c8
|
@ -1,11 +1,15 @@
|
|||
"""__init__.py."""
|
||||
import os
|
||||
|
||||
from flask.app import Flask
|
||||
from werkzeug.utils import ImportStringError
|
||||
|
||||
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
|
||||
project_root = os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__), "..", "..", "..")
|
||||
)
|
||||
|
||||
|
||||
def setup_config(app):
|
||||
def setup_config(app: Flask) -> None:
|
||||
"""Setup_config."""
|
||||
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
||||
app.config.from_object("spiff_workflow_webapp.config.default")
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
"""Default."""
|
||||
SQLALCHEMY_DATABASE_URI = "mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_development"
|
||||
SQLALCHEMY_DATABASE_URI = (
|
||||
"mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_development"
|
||||
)
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
"""Development."""
|
||||
SQLALCHEMY_DATABASE_URI = "mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_development"
|
||||
SQLALCHEMY_DATABASE_URI = (
|
||||
"mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_development"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,9 @@ import os
|
|||
if os.environ.get("TEST_DATABASE_TYPE") == "sqlite":
|
||||
SQLALCHEMY_DATABASE_URI = "sqlite:///db.sqlite3"
|
||||
else:
|
||||
SQLALCHEMY_DATABASE_URI = "mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_testing"
|
||||
SQLALCHEMY_DATABASE_URI = (
|
||||
"mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_testing"
|
||||
)
|
||||
|
||||
TESTING = True
|
||||
BPMN_SPEC_DIR = "tests/spiff_workflow_webapp/files/bpmn_specs"
|
||||
|
|
Binary file not shown.
|
@ -2,8 +2,8 @@
|
|||
import enum
|
||||
|
||||
from flask_bpmn.models.db import db
|
||||
from sqlalchemy import Enum
|
||||
from sqlalchemy import ForeignKey # type: ignore
|
||||
from sqlalchemy import Enum # type: ignore
|
||||
from sqlalchemy import ForeignKey
|
||||
|
||||
from spiff_workflow_webapp.models.permission import PermissionModel
|
||||
from spiff_workflow_webapp.models.permission_target import PermissionTargetModel
|
||||
|
|
Loading…
Reference in New Issue