19.0 vanilla

This commit is contained in:
Ernad Husremovic 2025-10-03 18:07:25 +02:00
parent 0a7ae8db93
commit 991d2234ca
416 changed files with 646602 additions and 300844 deletions

View file

@ -3,7 +3,6 @@ import importlib.util
import inspect
import logging
import sys
import threading
from pathlib import Path
from unittest import case
@ -105,18 +104,16 @@ def make_suite(module_names, position='at_install'):
for t in get_module_test_cases(m)
if position_tag.check(t) and config_tags.check(t)
)
return OdooSuite(sorted(tests, key=lambda t: t.test_sequence))
return OdooSuite(sorted(tests, key=lambda t: getattr(t, 'test_sequence', 0)))
def run_suite(suite, global_report=None):
# avoid dependency hell
from ..modules import module
module.current_test = True
threading.current_thread().testing = True
results = OdooTestResult(global_report=global_report)
suite(results)
threading.current_thread().testing = False
module.current_test = False
return results