diff options
| author | Aaron Bohy <aab@odoo.com> | 2021-03-15 10:45:48 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2021-03-15 14:32:59 +0000 |
| commit | 72bc0afce2f458d732f4646a9e6b3a2b5f4d2b8f (patch) | |
| tree | 0b774f8d1b4f1e54dd32854789ae5765f3ed9705 /addons/web/static | |
| parent | 166e30b132fb659aa5a35a03cc73e5225575af2b (diff) | |
[FIX] web: do not forget to unpatch in tests
Without this commit, all tests executed after that one would use
the patched version of the FormViewDialog.
Issue spotted in the assets revamp branch, by moving form_tests.js
after calendar_tests.js
closes odoo/odoo#67865
X-original-commit: ff19ee8d8b39a719a09dd9f6060faa3afa474da3
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/tests/views/calendar_tests.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/tests/views/calendar_tests.js b/addons/web/static/tests/views/calendar_tests.js index 89e034fbf2f..50ff2d000a6 100644 --- a/addons/web/static/tests/views/calendar_tests.js +++ b/addons/web/static/tests/views/calendar_tests.js @@ -597,6 +597,7 @@ QUnit.module('Views', { assert.containsOnce($('body'), '.modal', "there should be only one open modal"); calendar.destroy(); + testUtils.mock.unpatch(ViewDialogs.FormViewDialog); }); QUnit.test('create event with timezone in week mode European locale', async function (assert) { |
