Skip to content

Commit a142c37

Browse files
committed
Remove extra_tests arg for DiscoverRunner.build_suite/run_tests
1 parent d58ea50 commit a142c37

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

django-stubs/test/runner.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ class DiscoverRunner:
144144
@contextmanager
145145
def load_with_patterns(self) -> Iterator[None]: ...
146146
def load_tests_for_label(self, label: str, discover_kwargs: dict[str, str]) -> TestSuite: ...
147-
def build_suite(
148-
self, test_labels: Sequence[str] = ..., extra_tests: list[Any] | None = ..., **kwargs: Any
149-
) -> TestSuite: ...
147+
def build_suite(self, test_labels: Sequence[str] = ..., **kwargs: Any) -> TestSuite: ...
150148
def setup_databases(self, **kwargs: Any) -> list[tuple[BaseDatabaseWrapper, str, bool]]: ...
151149
def get_resultclass(self) -> type[TextTestResult] | None: ...
152150
def get_test_runner_kwargs(self) -> dict[str, Any]: ...
@@ -157,7 +155,7 @@ class DiscoverRunner:
157155
def suite_result(self, suite: TestSuite, result: TextTestResult, **kwargs: Any) -> int: ...
158156
def _get_databases(self, suite: TestSuite) -> set[str]: ...
159157
def get_databases(self, suite: TestSuite) -> set[str]: ...
160-
def run_tests(self, test_labels: list[str], extra_tests: list[Any] | None = ..., **kwargs: Any) -> int: ...
158+
def run_tests(self, test_labels: list[str], **kwargs: Any) -> int: ...
161159

162160
def is_discoverable(label: str) -> bool: ...
163161
def reorder_suite(

scripts/stubtest/allowlist_todo.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,6 @@ django.templatetags.static.StaticNode.__init__
16731673
django.test.SimpleTestCase.assertFormError
16741674
django.test.SimpleTestCase.assertFormSetError
16751675
django.test.SimpleTestCase.assertTemplateNotUsed
1676-
django.test.runner.DiscoverRunner.build_suite
16771676
django.test.runner.DiscoverRunner.log
16781677
django.test.runner.DiscoverRunner.reorder_by
16791678
django.test.runner.DummyList

scripts/stubtest/allowlist_todo_django50.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ django.test.client.AsyncClient.post
252252
django.test.client.AsyncClient.put
253253
django.test.client.AsyncClient.trace
254254
django.test.runner.DiscoverRunner.__init__
255-
django.test.runner.DiscoverRunner.run_tests
256255
django.test.runner.RemoteTestResult.addDuration
257256
django.utils.baseconv
258257
django.utils.choices

0 commit comments

Comments
 (0)