Daily updates from Odoo
Thursday, August 22, 2024
1 change · master
Resolved issues and error corrections
This update changes automated tests to use Odoo's own time-freezing helper instead of an external decorator. It improves test cleanup and reduces the risk of unreliable test results, with no expected impact on end users.
Original PR description
As using freezegun.freeze_time decorator on test classes is discouraged, a custom freeze_time object can be used as a replacement that properly manage the cleanup. With this commit, the problematic usages are replaced by the custom object.