From 09c64c3db4a78349168bf4ebf8fe507db64f8c2d Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 15 Mar 2021 10:45:48 +0000 Subject: [PATCH] [FIX] web: do not forget to unpatch in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/web/static/tests/views/calendar_tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/tests/views/calendar_tests.js b/addons/web/static/tests/views/calendar_tests.js index 344bc4934f3..9f99431ae43 100644 --- a/addons/web/static/tests/views/calendar_tests.js +++ b/addons/web/static/tests/views/calendar_tests.js @@ -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) {