@@ -152,9 +152,9 @@ def test_get_env_var_missing_standard(self, state):
152152 assert f"Please set the <code>{ var_name } </code> environment variable." in state .instructions [0 ]
153153
154154 def test_get_env_var_missing_canary_guid (self , state ):
155- """Test get_env_var when MONITORED_CONTENT_GUID is missing"""
155+ """Test get_env_var when MONITORED_CONTENT is missing"""
156156 # Setup
157- var_name = "MONITORED_CONTENT_GUID "
157+ var_name = "MONITORED_CONTENT "
158158 clear_env_var (var_name ) # Ensure it doesn't exist
159159
160160 # Execute
@@ -164,7 +164,7 @@ def test_get_env_var_missing_canary_guid(self, state):
164164 assert result == ""
165165 assert state .show_instructions
166166 assert len (state .instructions ) == 1
167- assert "you must configure the <code>MONITORED_CONTENT_GUID </code> environment variable" in state .instructions [0 ]
167+ assert "you must configure the <code>MONITORED_CONTENT </code> environment variable" in state .instructions [0 ]
168168 assert f"<code>{ var_name } </code>" in state .instructions [0 ]
169169
170170 def test_get_env_var_with_description (self , state ):
@@ -290,7 +290,7 @@ def test_extract_guid_with_url_no_guid(self):
290290 # Assert
291291 assert result == input_string
292292 assert error_message is not None
293- assert "The URL provided in <code>MONITORED_CONTENT_GUID </code> does not contain a valid GUID" in error_message
293+ assert "The URL provided in <code>MONITORED_CONTENT </code> does not contain a valid GUID" in error_message
294294 assert "The URL should contain a GUID like: <code>1d97c1ff-e56c-4074-906f-cb3557685b75</code>" in error_message
295295 assert f"<a href=\" { input_string } \" target=\" _blank\" rel=\" noopener noreferrer\" >" in error_message
296296 assert "Please update your environment variable with a valid GUID or a URL containing a GUID" in error_message
@@ -306,7 +306,7 @@ def test_extract_guid_with_plain_text(self):
306306 # Assert
307307 assert result == input_string
308308 assert error_message is not None
309- assert "The value provided in <code>MONITORED_CONTENT_GUID </code> is not a valid GUID" in error_message
309+ assert "The value provided in <code>MONITORED_CONTENT </code> is not a valid GUID" in error_message
310310 assert "A valid GUID looks like: <code>1d97c1ff-e56c-4074-906f-cb3557685b75</code>" in error_message
311311 assert f"The provided value was: <code>{ input_string } </code>" in error_message
312312 assert "Please update your environment variable with a valid GUID or a URL containing a GUID" in error_message
@@ -802,10 +802,10 @@ def test_scenario_no_canary_guid_env_var(self, mock_client, state):
802802 Expected: If scheduled, DOES NOT send an email
803803 """
804804 # Clear environment variable if it exists
805- clear_env_var ("MONITORED_CONTENT_GUID " )
805+ clear_env_var ("MONITORED_CONTENT " )
806806
807807 # Execute - Try to get the env var
808- result = get_env_var ("MONITORED_CONTENT_GUID " , state )
808+ result = get_env_var ("MONITORED_CONTENT " , state )
809809
810810 # Assert - It should be empty and show instructions
811811 assert result == ""
0 commit comments