You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just open this issue as self remember from fist try
In odoo 18 there is a change (odoo/odoo@ccf3c1e) that expect unit test launcher
if not result.wasSuccessful() and BaseCase._tests_run_count != 1:
_logger.runbot('Disabling auto-retry after a failed test')
BaseCase._tests_run_count = 1
wasSuccessful does not exists while launching test using pytest. commenting those lines seems to works as an ungly workaround.
Also a warning is shown while open registry:
``
`/.venv/lib/python3.12/site-packages/pytest_odoo.py:167: DeprecationWarning: Use directly odoo.modules.registry.Registry
odoo.registry(db_name)
I (we) needs to spend more time to investigate a bit more and properly fix that some how
The text was updated successfully, but these errors were encountered:
Just open this issue as self remember from fist try
wasSuccessful does not exists while launching test using pytest. commenting those lines seems to works as an ungly workaround.
Also we get an logging error because configuration seems to be changed a bit late which was introduce by this commit odoo/odoo@1f3a15a#diff-80aef099e5fb41cc09e699d35b749152aca50caf5b0bc16c400081c29023fbecR95
Also a warning is shown while open registry:
``
`/.venv/lib/python3.12/site-packages/pytest_odoo.py:167: DeprecationWarning: Use directly odoo.modules.registry.Registry
odoo.registry(db_name)
The text was updated successfully, but these errors were encountered: