Files
odoo-stubs/odoo-stubs/tests/runner.pyi
Trinh Anh Ngoc c7950c5c1e Update stubs
2020-11-15 19:04:07 +07:00

23 lines
1.0 KiB
Python

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): ...