Skip to content

Commit e72b95f

Browse files
committed
Fix paramters for ParallelTestSuite and RemoteTestRunner.
A new parameter `buffer` is added. `suites` is renamed to `subsuites`. ParallelTestSuite: https://github.com/django/django/blob/2fac0a18081dcc77fc860c801e5d727dc90435b3/django/test/runner.py#L468-L475 RemoteTestRunner: https://github.com/django/django/blob/2fac0a18081dcc77fc860c801e5d727dc90435b3/django/test/runner.py#L350 `buffer` was added in django/django@f6713cd, `suites` was renamed in django/django@cb6c197. Both of these changes were made in 4.1rc1. Signed-off-by: Zixuan James Li <[email protected]>
1 parent 2a6f464 commit e72b95f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

django-stubs/test/runner.pyi

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class RemoteTestResult:
6161
class RemoteTestRunner:
6262
resultclass: Any = ...
6363
failfast: Any = ...
64-
def __init__(self, failfast: bool = ..., resultclass: Optional[Any] = ...) -> None: ...
64+
def __init__(self, failfast: bool = ..., resultclass: Optional[Any] = ..., buffer: bool = ...) -> None: ...
6565
def run(self, test: Any): ...
6666

6767
def default_test_processes() -> int: ...
@@ -73,7 +73,12 @@ class ParallelTestSuite(TestSuite):
7373
subsuites: Any = ...
7474
processes: Any = ...
7575
failfast: Any = ...
76-
def __init__(self, suite: Any, processes: Any, failfast: bool = ...) -> None: ...
76+
buffer: bool = ...
77+
initial_settings: Any = ...
78+
serialized_contents: Any = ...
79+
def __init__(
80+
self, subsuites: List[TestSuite], processes: int, failfast: bool = ..., buffer: bool = ...
81+
) -> None: ...
7782
def run(self, result: Any): ... # type: ignore[override]
7883

7984
class DiscoverRunner:

0 commit comments

Comments
 (0)