Update stubs

This commit is contained in:
Trinh Anh Ngoc
2020-11-15 19:04:07 +07:00
parent a859bd5481
commit c7950c5c1e
30 changed files with 189 additions and 80 deletions

View File

@@ -0,0 +1,22 @@
import unittest
from typing import Any, Optional
_logger: Any
class OdooTestResult(unittest.result.TestResult):
time_start: Any = ...
queries_start: Any = ...
def __init__(self) -> None: ...
def __str__(self): ...
shouldStop: Any = ...
def update(self, other: Any) -> None: ...
def log(self, level: Any, msg: Any, *args: Any, test: Optional[Any] = ..., exc_info: Optional[Any] = ..., extra: Optional[Any] = ..., stack_info: bool = ..., caller_infos: Optional[Any] = ...) -> None: ...
def getDescription(self, test: Any): ...
def startTest(self, test: Any) -> None: ...
def addError(self, test: Any, err: Any) -> None: ...
def addFailure(self, test: Any, err: Any) -> None: ...
def addSubTest(self, test: Any, subtest: Any, err: Any) -> None: ...
def addSkip(self, test: Any, reason: Any) -> None: ...
def addUnexpectedSuccess(self, test: Any) -> None: ...
def logError(self, flavour: Any, test: Any, error: Any) -> None: ...
def getErrorCallerInfo(self, error: Any, test: Any): ...