mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
Fix paramters for ParallelTestSuite and RemoteTestRunner. (#1072)
* Fix paramters for ParallelTestSuite and RemoteTestRunner. A new parameter `buffer` is added. `suites` is renamed to `subsuites`. ParallelTestSuite:2fac0a1808/django/test/runner.py (L468-L475)RemoteTestRunner:2fac0a1808/django/test/runner.py (L350)`buffer` was added inf6713cda89, `suites` was renamed incb6c19749d. Both of these changes were made in 4.1rc1. Signed-off-by: Zixuan James Li <p359101898@gmail.com> * Adjust types of attributes for runners. Signed-off-by: Zixuan James Li <p359101898@gmail.com> Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
@@ -65,8 +65,9 @@ class RemoteTestResult:
|
||||
|
||||
class RemoteTestRunner:
|
||||
resultclass: Any = ...
|
||||
failfast: Any = ...
|
||||
def __init__(self, failfast: bool = ..., resultclass: Optional[Any] = ...) -> None: ...
|
||||
failfast: bool = ...
|
||||
buffer: bool = ...
|
||||
def __init__(self, failfast: bool = ..., resultclass: Optional[Any] = ..., buffer: bool = ...) -> None: ...
|
||||
def run(self, test: Any): ...
|
||||
|
||||
def default_test_processes() -> int: ...
|
||||
@@ -75,10 +76,15 @@ class ParallelTestSuite(TestSuite):
|
||||
init_worker: Any = ...
|
||||
run_subsuite: Any = ...
|
||||
runner_class: Any = ...
|
||||
subsuites: Any = ...
|
||||
processes: Any = ...
|
||||
failfast: Any = ...
|
||||
def __init__(self, suite: Any, processes: Any, failfast: bool = ...) -> None: ...
|
||||
subsuites: List[TestSuite] = ...
|
||||
processes: int = ...
|
||||
failfast: bool = ...
|
||||
buffer: bool = ...
|
||||
initial_settings: Any = ...
|
||||
serialized_contents: Any = ...
|
||||
def __init__(
|
||||
self, subsuites: List[TestSuite], processes: int, failfast: bool = ..., buffer: bool = ...
|
||||
) -> None: ...
|
||||
def run(self, result: Any): ... # type: ignore[override]
|
||||
|
||||
class DiscoverRunner:
|
||||
|
||||
Reference in New Issue
Block a user