From d5c7d9ff47eb4317bab39bce1347eb7ec7300b19 Mon Sep 17 00:00:00 2001 From: Kacper Prywata Date: Wed, 6 Nov 2024 12:15:13 +0000 Subject: [PATCH] Fixed the tests --- cms/core/tests/test_context_processors.py | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/cms/core/tests/test_context_processors.py b/cms/core/tests/test_context_processors.py index 857097d..8744b43 100644 --- a/cms/core/tests/test_context_processors.py +++ b/cms/core/tests/test_context_processors.py @@ -1,5 +1,3 @@ -import os - from django.test import RequestFactory, TestCase from cms.core.context_processors import global_vars @@ -19,21 +17,9 @@ def test_defaults_when_no_environment_settings_defined(self): self.assertEqual( global_vars(self.request), { - "GOOGLE_TAG_MANAGER_ID": "", - "SEO_NOINDEX": False, - "LANGUAGE_CODE": "en-gb", - "IS_EXTERNAL_ENV": False, - }, - ) - - def test_custom_values_when_environment_settings_defined(self): - """Confirm the global vars include environment settings when defined.""" - os.environ["GOOGLE_TAG_MANAGER_ID"] = "GTM-123456" - - self.assertEqual( - global_vars(self.request), - { - "GOOGLE_TAG_MANAGER_ID": "GTM-123456", + "GOOGLE_TAG_MANAGER_CONTAINER_ID": "", + "ONS_COOKIE_BANNER_SERVICE_NAME": "www.ons.gov.uk", + "MANAGE_COOKIE_SETTINGS_URL": "https://www.ons.gov.uk/cookies", "SEO_NOINDEX": False, "LANGUAGE_CODE": "en-gb", "IS_EXTERNAL_ENV": False,