Skip to content

Commit ed32fbe

Browse files
committed
Improve sqlite test efficiency by using memory backend
1 parent f1c4397 commit ed32fbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django

infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
DATABASE_NAME = os.path.join(getattr(settings, "PERSISTENT_ROOT", "."), f"{app_name}.sqlite3")
7575
DATABASE_HOST = None
7676
DATABASE_PORT = None
77-
TEST_DATABASE_NAME = os.path.join(getattr(settings, "PERSISTENT_ROOT", "."), "testdb.sqlite3")
77+
TEST_DATABASE_NAME = ":memory:" # os.path.join(getattr(settings, "PERSISTENT_ROOT", "."), "testdb.sqlite3")
7878
elif current_app.harness.database.type == "postgres":
7979
DATABASE_ENGINE = "django.db.backends.postgresql"
8080
DATABASE_NAME = current_app.harness.database.postgres.initialdb

0 commit comments

Comments
 (0)