#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701964206eb5c-861e99e7-653d-42bf-b16c-ec29c7cbd056-000000%40eu-central-1.amazonses.com.

Reply via email to