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)