[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#67887

X-original-commit: ff19ee8d8b39a719a09dd9f6060faa3afa474da3
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
This commit is contained in:
Aaron Bohy
2021-03-15 16:10:59 +00:00
parent dc02ff520b
commit 09c64c3db4
@@ -677,6 +677,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) {