diff --git a/docs/internals/contributing.txt b/docs/internals/contributing.txt
index 8258c5e..05fb040 100644
a
|
b
|
following is a minimal settings file that can be used to test SQLite::
|
826 | 826 | } |
827 | 827 | } |
828 | 828 | |
| 829 | As a convenience, this settings file is included in your Django |
| 830 | distribution. It is called ``test_sqlite`, and is included in |
| 831 | the ``tests`` directory. This allows you to get started running |
| 832 | the tests against the sqlite database without doing anything on |
| 833 | your filesystem. However it should be noted that running against |
| 834 | other database backends is recommended for certain types of test |
| 835 | cases. |
| 836 | |
| 837 | To run the tests with this included settings file, ``cd`` |
| 838 | to the ``tests/`` directory and type: |
| 839 | |
| 840 | .. code-block:: bash |
| 841 | |
| 842 | ./runtests.py --settings=test_sqlite |
829 | 843 | |
830 | 844 | If you're using another backend, you will need to provide other details for |
831 | 845 | each database: |
diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py
new file mode 100644
index 0000000..3159c5e
-
|
+
|
|
| 1 | # This is an example test settings file for use with the Django test suite. |
| 2 | # |
| 3 | # The 'sqlite3' backend requires only the ENGINE setting (an in- |
| 4 | # memory database will be used). All other backends will require a |
| 5 | # NAME and potentially authentication information. See the |
| 6 | # following section in the docs for more information: |
| 7 | # |
| 8 | # http://docs.djangoproject.com/en/dev/internals/contributing/#unit-tests |
| 9 | # |
| 10 | # The different databases that Django supports behave differently in certain |
| 11 | # situations, so it is recommended to run the test suite against as many |
| 12 | # database backends as possible. You may want to create a separate settings |
| 13 | # file for each of the backends you test against. |
| 14 | |
| 15 | DATABASES = { |
| 16 | 'default': { |
| 17 | 'ENGINE': 'django.db.backends.sqlite3' |
| 18 | }, |
| 19 | 'other': { |
| 20 | 'ENGINE': 'django.db.backends.sqlite3', |
| 21 | 'TEST_NAME': 'other_db' |
| 22 | } |
| 23 | } |