Opened 5 months ago
Last modified 5 months ago
#36330 closed New feature
Allow specifying DATABASES["default"]["TEST"]["ENGINE"] and ["TEST"]["OPTIONS"] — at Version 1
Reported by: | Collin Anderson | Owned by: | |
---|---|---|---|
Component: | Testing framework | Version: | 5.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Would be nice to be able to set DATABASES["default"]["TEST"]["ENGINE"] = "django.db.backends.sqlite3"
for running tests in an in-memory database.
See also #30084: Setting DATABASES['default']['TEST']['engine']
to SQLite does not cause Django to use an in-memory database as expected
In my case I'd also need to set DATABASES["default"]["TEST"]["OPTIONS"] = {}
because I don't want to pass those options to sqlite.
ENGINE
and OPTIONS
aren't options here:
https://docs.djangoproject.com/en/dev/ref/settings/#std-setting-DATABASE-TEST
Change History (1)
comment:1 by , 5 months ago
Description: | modified (diff) |
---|---|
Summary: | Allow specifying DATABASES["default"]["TEST"]["ENGINE"] → Allow specifying DATABASES["default"]["TEST"]["ENGINE"] and ["TEST"]["OPTIONS"] |