Skip to content

Commit

Permalink
Fix logger interaction with test runner in Odoo 18
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Oct 23, 2024
1 parent cc52609 commit 37d0827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# This hack is necessary because the way CliRunner patches
# stdout is not compatible with the Odoo logging initialization
# mechanism. Logging is therefore tested with subprocesses.
odoo.netsvc._logger_init = True
odoo.netsvc.init_logger = lambda: None


def _init_odoo_db(dbname, test_addons_dir=None):
Expand Down

0 comments on commit 37d0827

Please sign in to comment.