Code

Ticket #3051: testing_skipping_manage_py.diff

File testing_skipping_manage_py.diff, 611 bytes (added by Rupe, 4 years ago)

Added a note about setup_test_environment()

Line 
1Index: docs/topics/testing.txt
2===================================================================
3--- docs/topics/testing.txt     (revision 13063)
4+++ docs/topics/testing.txt     (working copy)
5@@ -311,6 +311,12 @@
6 but not gracefully. No details of the tests run before the interruption will
7 be reported, and any test databases created by the run will not be destroyed.
8 
9+.. note::
10+
11+You can also skip the ``manage.py`` file by including ``from django.test.utils
12+import setup_test_environment`` and calling ``setup_test_environment()`` before
13+running your tests.
14+
15 The test database
16 -----------------
17