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:
|
class RemoteTestRunner:
|
||||||
resultclass: Any = ...
|
resultclass: Any = ...
|
||||||
failfast: Any = ...
|
failfast: bool = ...
|
||||||
def __init__(self, failfast: bool = ..., resultclass: Optional[Any] = ...) -> None: ...
|
buffer: bool = ...
|
||||||
|
def __init__(self, failfast: bool = ..., resultclass: Optional[Any] = ..., buffer: bool = ...) -> None: ...
|
||||||
def run(self, test: Any): ...
|
def run(self, test: Any): ...
|
||||||
|
|
||||||
def default_test_processes() -> int: ...
|
def default_test_processes() -> int: ...
|
||||||
@@ -75,10 +76,15 @@ class ParallelTestSuite(TestSuite):
|
|||||||
init_worker: Any = ...
|
init_worker: Any = ...
|
||||||
run_subsuite: Any = ...
|
run_subsuite: Any = ...
|
||||||
runner_class: Any = ...
|
runner_class: Any = ...
|
||||||
subsuites: Any = ...
|
subsuites: List[TestSuite] = ...
|
||||||
processes: Any = ...
|
processes: int = ...
|
||||||
failfast: Any = ...
|
failfast: bool = ...
|
||||||
def __init__(self, suite: Any, processes: Any, failfast: bool = ...) -> None: ...
|
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]
|
def run(self, result: Any): ... # type: ignore[override]
|
||||||
|
|
||||||
class DiscoverRunner:
|
class DiscoverRunner:
|
||||||
|
|||||||
Reference in New Issue
Block a user