Skip to content

Commit

Permalink
Remove extra_tests arg for DiscoverRunner.build_suite/run_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w committed Feb 25, 2024
1 parent d58ea50 commit be27023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions django-stubs/test/runner.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ class DiscoverRunner:
@contextmanager
def load_with_patterns(self) -> Iterator[None]: ...
def load_tests_for_label(self, label: str, discover_kwargs: dict[str, str]) -> TestSuite: ...
def build_suite(
self, test_labels: Sequence[str] = ..., extra_tests: list[Any] | None = ..., **kwargs: Any
) -> TestSuite: ...
def build_suite(self, test_labels: Sequence[str] = ..., **kwargs: Any) -> TestSuite: ...
def setup_databases(self, **kwargs: Any) -> list[tuple[BaseDatabaseWrapper, str, bool]]: ...
def get_resultclass(self) -> type[TextTestResult] | None: ...
def get_test_runner_kwargs(self) -> dict[str, Any]: ...
Expand All @@ -157,7 +155,7 @@ class DiscoverRunner:
def suite_result(self, suite: TestSuite, result: TextTestResult, **kwargs: Any) -> int: ...
def _get_databases(self, suite: TestSuite) -> set[str]: ...
def get_databases(self, suite: TestSuite) -> set[str]: ...
def run_tests(self, test_labels: list[str], extra_tests: list[Any] | None = ..., **kwargs: Any) -> int: ...
def run_tests(self, test_labels: list[str], **kwargs: Any) -> int: ...

def is_discoverable(label: str) -> bool: ...
def reorder_suite(
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ django.test.client.AsyncClient.post
django.test.client.AsyncClient.put
django.test.client.AsyncClient.trace
django.test.runner.DiscoverRunner.__init__
django.test.runner.DiscoverRunner.run_tests
django.test.runner.RemoteTestResult.addDuration
django.utils.baseconv
django.utils.choices
Expand Down

0 comments on commit be27023

Please sign in to comment.