From e00c14f277e82fa5ecd39a985fba6a287fa19ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 10 Jul 2024 05:49:29 +0800 Subject: [PATCH] Fixed the SQLite database URL for the in-memory database. --- tests/test_site/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_site/__init__.py b/tests/test_site/__init__.py index d7f8e07..fe0476c 100644 --- a/tests/test_site/__init__.py +++ b/tests/test_site/__init__.py @@ -49,7 +49,7 @@ def create_app(is_testing: bool = False) -> Flask: import accounting app: Flask = Flask(__name__) - db_uri: str = "sqlite:///" if is_testing else "sqlite:///local.sqlite" + db_uri: str = "sqlite://" if is_testing else "sqlite:///local.sqlite" app.config.from_mapping({ "SECRET_KEY": os.environ.get("SECRET_KEY", token_urlsafe(32)), "SESSION_COOKIE_SAMESITE": "Lax",