massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / unittest / runner.pyi
1 import unittest.case
2 import unittest.result
3 import unittest.suite
4 from typing import Callable, TextIO, Type
5
6 _ResultClassType = Callable[[TextIO, bool, int], unittest.result.TestResult]
7
8 class TextTestResult(unittest.result.TestResult):
9     descriptions: bool  # undocumented
10     dots: bool  # undocumented
11     separator1: str
12     separator2: str
13     showall: bool  # undocumented
14     stream: TextIO  # undocumented
15     def __init__(self, stream: TextIO, descriptions: bool, verbosity: int) -> None: ...
16     def getDescription(self, test: unittest.case.TestCase) -> str: ...
17     def printErrors(self) -> None: ...
18     def printErrorList(self, flavour: str, errors: tuple[unittest.case.TestCase, str]) -> None: ...
19
20 class TextTestRunner(object):
21     resultclass: _ResultClassType
22     def __init__(
23         self,
24         stream: TextIO | None = ...,
25         descriptions: bool = ...,
26         verbosity: int = ...,
27         failfast: bool = ...,
28         buffer: bool = ...,
29         resultclass: _ResultClassType | None = ...,
30         warnings: Type[Warning] | None = ...,
31         *,
32         tb_locals: bool = ...,
33     ) -> None: ...
34     def _makeResult(self) -> unittest.result.TestResult: ...
35     def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase) -> unittest.result.TestResult: ...