mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #26448 -- Added details for running tests with a different database backend.
This commit is contained in:
parent
90ce5d46bf
commit
361cb7a857
2 changed files with 9 additions and 5 deletions
|
@ -50,10 +50,11 @@ Having problems? See :ref:`troubleshooting-unit-tests` for some common issues.
|
|||
Using another ``settings`` module
|
||||
---------------------------------
|
||||
|
||||
The included settings module allows you to run the test suite using
|
||||
SQLite. If you want to test behavior using a different database (and
|
||||
if you're proposing patches for Django, it's a good idea to test
|
||||
across databases), you may need to define your own settings file.
|
||||
The included settings module (``tests/test_sqlite.py``) allows you to run the
|
||||
test suite using SQLite. If you want to run the tests using a different
|
||||
database, you'll need to define your own settings file. Some tests, such as
|
||||
those for ``contrib.postgres``, are specific to a particular database backend
|
||||
and will be skipped if run with a different backend.
|
||||
|
||||
To run the tests with different settings, ensure that the module is on your
|
||||
``PYTHONPATH`` and pass the module with ``--settings``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue