Skip to content

Commit

Permalink
Merge pull request #36 from GTZ-STUDIO/Sprint_2
Browse files Browse the repository at this point in the history
update test db for CI
  • Loading branch information
xinnie-ca committed Feb 22, 2024
2 parents 33beac3 + 11c8337 commit 3c6a43d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lvlgg_backend/lvlgg_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""

import os
import sys
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -90,6 +91,12 @@
}


if (
"test" in sys.argv or "test\_coverage" in sys.argv
): # Covers regular testing and django-coverage
DATABASES["default"]["ENGINE"] = "django.db.backends.sqlite3"
DATABASES["default"]["NAME"] = ":memory:"

# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators

Expand Down

0 comments on commit 3c6a43d

Please sign in to comment.