#36330: Allow specifying DATABASES["default"]["TEST"]["ENGINE"] and
["TEST"]["OPTIONS"]
-----------------------------------+--------------------------------------
Reporter: Collin Anderson | Owner: (none)
Type: New feature | Status: new
Component: Testing framework | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Simon Charette):
> Would be nice to be able to set `DATABASES["default"]["TEST"]["ENGINE"]
= "django.db.backends.sqlite3"` for running tests in an in-memory
database.
Putting aside the technical challenges involved in making this happen
(test databases are created through a `create_test_db` method on the
database engine itself) we usually warn against running tests against a
different databases than what's used in production for the project as the
ORM abstraction layer is far from air tight across backends.
Are you hoping to do this in order to use an in-memory database for your
SQLite backed project or are you trying to use SQLite for a non-SQLite
backed project?
--
Ticket URL: <
https://code.djangoproject.com/ticket/36330#comment:2>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.