-
- Downloads
[REF] website_event_*: remove manual datetime patch
Use freezegun as it is more easy to use and allow to remove a lot of extra boilerplate. Indeed manually patching datetime is a PITA as a lot of imports have to be patched. A custom patching has to be done for create_date, as it is done using a value stored on the cursor (cr._now), based on SQL now. As it has nothing to do with standard python library it cannot be patched using freezegun. Task-2703285 (Event performance improvements) Task-2703289 (Event testing and coverage) Part-of: odoo/odoo#81068
Showing
- addons/event_sale/tests/test_event_internals.py 2 additions, 15 deletionsaddons/event_sale/tests/test_event_internals.py
- addons/test_event_full/tests/common.py 2 additions, 3 deletionsaddons/test_event_full/tests/common.py
- addons/website_event/tests/common.py 5 additions, 48 deletionsaddons/website_event/tests/common.py
- addons/website_event_exhibitor/tests/test_sponsor_internals.py 37 additions, 55 deletions...s/website_event_exhibitor/tests/test_sponsor_internals.py
Loading
Please register or sign in to comment