diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-10 09:30:51 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-10 19:06:40 +0200 |
| commit | 7045fa7f7ac049b41e9a891c213dd7f55bedab1f (patch) | |
| tree | aa52cc100e1b7825c78c74090c62667dc8014974 | |
| parent | 33457aa3cfc775c2939547212fbb403c46c9afd9 (diff) | |
[3.1.x] Refs #27430 -- Added buffer argument to DiscoverRunner docs.
Backport of 188f7786bc434a3e5ca7b46d2975a08318fe7452 from master
| -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 ad50026800..ab4185cf8a 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -510,7 +510,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=False, keepdb=False, reverse=False, debug_mode=False, debug_sql=False, test_name_patterns=None, pdb=False, **kwargs) +.. class:: DiscoverRunner(pattern='test*.py', top_level=None, verbosity=1, interactive=True, failfast=False, keepdb=False, reverse=False, debug_mode=False, debug_sql=False, test_name_patterns=None, pdb=False, buffer=False, **kwargs) ``DiscoverRunner`` will search for tests in any file matching ``pattern``. @@ -555,6 +555,8 @@ execute and tear down the test suite. If ``pdb`` is ``True``, a debugger (``pdb`` or ``ipdb``) will be spawned at each test error or failure. + If ``buffer`` is ``True``, outputs from passing tests will be discarded. + 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 @@ -569,6 +571,10 @@ execute and tear down the test suite. The ``pdb`` argument was added. + .. versionadded:: 3.1 + + The ``buffer`` argument was added. + Attributes ~~~~~~~~~~ |
