From 63cf40849950438c14341f296027d2a4e674b379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Rivas?= Date: Wed, 21 Aug 2024 12:40:25 +0200 Subject: [PATCH] [FIX] Tests --- website_cookiebot/tests/test_website_cookiebot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website_cookiebot/tests/test_website_cookiebot.py b/website_cookiebot/tests/test_website_cookiebot.py index 95734c5257..0ea5fb1178 100644 --- a/website_cookiebot/tests/test_website_cookiebot.py +++ b/website_cookiebot/tests/test_website_cookiebot.py @@ -9,6 +9,8 @@ def test_conf_cookiebot_domain(self): domain_group_id = "9a9999a9-aa99-9a99-999a-aa999999999a" config = self.env["res.config.settings"].sudo().create({}) config.write({"cookiebot_dgid": domain_group_id}) + config.write({"cookiebot_enabled": True}) + config._onchange_cookiebot_enabled() self.assertTrue(config.cookiebot_enabled) self.assertFalse(config.website_cookies_bar) self.assertEqual(config.cookiebot_dgid, domain_group_id)