1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #32655 -- Removed extra_tests argument for DiscoverRunner.build_suite()/run_tests().

Per deprecation timeline.
This commit is contained in:
Mariusz Felisiak
2023-01-06 13:12:23 +01:00
parent 4eb97a90f0
commit 43b01300b7
4 changed files with 6 additions and 72 deletions

View File

@@ -654,12 +654,6 @@ Methods
several formats (see :meth:`DiscoverRunner.build_suite` for a list of
supported formats).
.. deprecated:: 4.0
``extra_tests`` is a list of extra ``TestCase`` instances to add to the
suite that is executed by the test runner. These extra tests are run in
addition to those discovered in the modules listed in ``test_labels``.
This method should return the number of tests that failed.
.. classmethod:: DiscoverRunner.add_arguments(parser)
@@ -695,12 +689,6 @@ Methods
tests in all files below the current directory whose names match its
``pattern`` (see above).
.. deprecated:: 4.0
``extra_tests`` is a list of extra ``TestCase`` instances to add to the
suite that is executed by the test runner. These extra tests are run in
addition to those discovered in the modules listed in ``test_labels``.
Returns a ``TestSuite`` instance ready to be run.
.. method:: DiscoverRunner.setup_databases(**kwargs)