mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -30,7 +30,6 @@ def dispatch_rpc(service_name: str, method: str, params): ...
|
||||
class WebRequest:
|
||||
httprequest: werkzeug.Request
|
||||
httpresponse: Response | None
|
||||
disable_db: bool
|
||||
endpoint: EndPoint | None
|
||||
endpoint_arguments: Any
|
||||
auth_method: str | None
|
||||
@@ -39,6 +38,7 @@ class WebRequest:
|
||||
is_frontend: bool
|
||||
is_frontend_multilang: bool
|
||||
lang: 'odoo.model.res_lang'
|
||||
_db: str | None
|
||||
_cr: Cursor | None
|
||||
_uid: int | None
|
||||
_context: dict | None
|
||||
@@ -142,7 +142,7 @@ class OpenERPSession(sessions.Session):
|
||||
def __setattr__(self, k, v): ...
|
||||
pre_uid: int
|
||||
uid: int
|
||||
db: str
|
||||
db: str | None
|
||||
login: str | None
|
||||
def authenticate(self, db: str, login: str | None = ..., password: str | None = ...) -> int: ...
|
||||
session_token: str | None
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from types import ModuleType
|
||||
from typing import Iterator
|
||||
|
||||
from .runner import OdooTestResult
|
||||
@@ -5,6 +6,7 @@ from ..tests import OdooSuite
|
||||
|
||||
def get_test_modules(module: str) -> list: ...
|
||||
def _get_tests_modules(path: str, module: str) -> list: ...
|
||||
def _get_upgrade_test_modules(module) -> Iterator[ModuleType]: ...
|
||||
def make_suite(module_names: list[str], position: str = ...) -> OdooSuite: ...
|
||||
def run_suite(suite: OdooSuite, module_name: str | None = ...) -> OdooTestResult: ...
|
||||
def unwrap_suite(test) -> Iterator: ...
|
||||
|
||||
Reference in New Issue
Block a user