File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ def test_get_variation_cmab_experiment_deep_mock_500_error(self):
952952 # Define HTTP error details
953953 http_error = requests .exceptions .HTTPError ("500 Server Error" )
954954 error_message = Errors .CMAB_FETCH_FAILED .format (http_error )
955- detailed_error_message = Errors .CMAB_FETCH_FAILED_DETAILED .format (cmab_experiment .key , error_message )
955+ detailed_error_message = Errors .CMAB_FETCH_FAILED_DETAILED .format (cmab_experiment .key )
956956
957957 # Set up mocks for the entire call chain
958958 with mock .patch ('optimizely.helpers.experiment.is_experiment_running' , return_value = True ), \
@@ -988,7 +988,7 @@ def test_get_variation_cmab_experiment_deep_mock_500_error(self):
988988 self .assertIn (detailed_error_message , reasons )
989989
990990 # Verify logger was called with the specific 500 error
991- mock_logger .error .assert_any_call (detailed_error_message )
991+ mock_logger .error .assert_any_call (f' { detailed_error_message } - { error_message } ' )
992992
993993 def test_get_variation_cmab_experiment_forced_variation (self ):
994994 """Test get_variation with CMAB experiment when user has a forced variation."""
You can’t perform that action at this time.
0 commit comments