diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-04 14:26:37 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-04 14:26:37 -0500 |
| commit | e645b79ef5e5238c418df8f4ab5d52eb7bbc78e7 (patch) | |
| tree | 810b2a4e0eb617f654101ffa91ff2fb673a9f018 | |
| parent | ca48cef3b440a9e8a121713e370b9988dcf0aa2b (diff) | |
Added missing docs to DiscoverRunner for keepdb option; refs #20550.
| -rw-r--r-- | docs/topics/testing/advanced.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index d817cf4f02..8a883dfb84 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -309,7 +309,7 @@ behavior. This class defines the ``run_tests()`` entry point, plus a selection of other methods that are used to by ``run_tests()`` to set up, execute and tear down the test suite. -.. class:: DiscoverRunner(pattern='test*.py', top_level=None, verbosity=1, interactive=True, failfast=True, **kwargs) +.. class:: DiscoverRunner(pattern='test*.py', top_level=None, verbosity=1, interactive=True, failfast=True, keepdb=False **kwargs) ``DiscoverRunner`` will search for tests in any file matching ``pattern``. @@ -331,6 +331,10 @@ execute and tear down the test suite. If ``failfast`` is ``True``, the test suite will stop running after the first test failure is detected. + If ``keepdb`` is ``True``, the test suite will use the existing database, + or create one if necessary. If ``False``, a new database will be created, + prompting the user to remove the existing one, if present. + Django may, from time to time, extend the capabilities of the test runner by adding new arguments. The ``**kwargs`` declaration allows for this expansion. If you subclass ``DiscoverRunner`` or write your own test @@ -347,6 +351,8 @@ execute and tear down the test suite. subclassed test runner to add options to the list of command-line options that the :djadmin:`test` command could use. + The ``keepdb`` argument was added. + Attributes ~~~~~~~~~~ |
