-
Notifications
You must be signed in to change notification settings - Fork 55
Error using --odoo-http Odoo 18.0+ #92
Copy link
Copy link
Open
Description
Using --odoo-http parameter seems to failed since Odoo v18.0 while starting the server with the following error:
request = <SubRequest 'load_http' for <TestCaseFunction test_portal_quote_deposit_accept>>
@pytest.fixture(scope="module", autouse=True)
def load_http(request):
if request.config.getoption("--odoo-http"):
> odoo.service.server.start(stop=True)
src/pytest-odoo/pytest_odoo.py:115:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.venv/lib/python3.12/site-packages/odoo/service/server.py:1462: in start
rc = server.run(preload, stop)
^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <odoo.service.server.ThreadedServer object at 0x7f63117cf6b0>, preload = None, stop = True
def run(self, preload=None, stop=False):
""" Start the http server and the cron thread then wait for a signal.
The first SIGINT or SIGTERM signal will initiate a graceful shutdown while
a second one if any will force an immediate exit.
"""
with Registry._lock:
self.start(stop=stop)
rc = preload_registries(preload)
if stop:
if config['test_enable']:
from odoo.tests.result import _logger as logger # noqa: PLC0415
with Registry.registries._lock:
for db, registry in Registry.registries.d.items():
report = registry._assertion_report
> log = logger.error if not report.wasSuccessful() \
^^^^^^^^^^^^^^^^^^^^
else logger.warning if not report.testsRun \
else logger.info
E AttributeError: 'NoneType' object has no attribute 'wasSuccessful'
.venv/lib/python3.12/site-packages/odoo/service/server.py:635: AttributeError
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels