Skip to content

Commit

Permalink
Merge pull request #35 from GTZ-STUDIO/user_management
Browse files Browse the repository at this point in the history
adding a test db
  • Loading branch information
xinnie-ca committed Feb 22, 2024
2 parents 0d051d7 + 3e3a0d8 commit 11c8337
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 11c8337

Please sign in to comment.