Skip to content
Snippets Groups Projects
Commit 892b8bf7 authored by Neda Moeini's avatar Neda Moeini
Browse files

Add SQLite for unit tests

parent 587f8e05
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,14 @@
from sage_validation.settings import * # noqa: F403
DATABASES = {
"default": DATABASES["default"], # noqa: F405
}
if os.getenv("USE_SQLITE", "false").lower() == "true": # noqa: F405
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "sage_validation",
}
}
else:
DATABASES = {
"default": DATABASES["default"],
}
......@@ -6,6 +6,10 @@ deps =
mypy
ruff
-r requirements.txt
setenv =
USE_SQLITE = true
commands =
ruff check .
mypy .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment