diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-04-29 23:25:34 +0430 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-29 20:56:08 +0200 |
| commit | ce130749d51302006f76e33b9987eaec20589837 (patch) | |
| tree | c2773ca7a7d79406def4ef01c960c9661627e545 /docs/internals/contributing/writing-code/unit-tests.txt | |
| parent | bac416972df546ac58febd3990b2107d60d7f166 (diff) | |
[3.2.x] Refs #32178 -- Doc'd DatabaseFeatures.django_test_skips/django_test_expected_failures in contributing guide.
Backport of ca34db46504fca1221e27f6ab13734dfdfde6e1c from main
Diffstat (limited to 'docs/internals/contributing/writing-code/unit-tests.txt')
| -rw-r--r-- | docs/internals/contributing/writing-code/unit-tests.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 21a0d3d003..fc87c6540f 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -153,7 +153,10 @@ 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. +and will be skipped if run with a different backend. Some tests are skipped or +expected failures on a particular database backend (see +``DatabaseFeatures.django_test_skips`` and +``DatabaseFeatures.django_test_expected_failures`` on each backend). To run the tests with different settings, ensure that the module is on your :envvar:`PYTHONPATH` and pass the module with ``--settings``. |
