From 4bcad6d546addc8a141ce7702346859e17a4cbdb Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Tue, 3 Dec 2019 09:38:16 +0000 Subject: [PATCH] [FIX] web: fix incorrect test of py utils Before this fix, a QUnit test was wrong (didn't parse) After this fix, the test actually works and tests something. closes odoo/odoo#41257 X-original-commit: 3818a7f0df754717a7379dc8341729b508a166be Signed-off-by: Xavier Morel (xmo) --- addons/web/static/tests/core/py_utils_tests.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web/static/tests/core/py_utils_tests.js b/addons/web/static/tests/core/py_utils_tests.js index 5f8b026689d..40cbe5de726 100644 --- a/addons/web/static/tests/core/py_utils_tests.js +++ b/addons/web/static/tests/core/py_utils_tests.js @@ -1220,7 +1220,9 @@ QUnit.module('core', function () { assert.checkAST("not a in b", "not prefix with expression"); }); - QUnit("conditional expression", function (assert) { + QUnit.test("conditional expression", function (assert) { + assert.expect(2); + assert.checkAST("1 if a else 2"); assert.checkAST("[] if a else 2"); });