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):
952
952
# Define HTTP error details
953
953
http_error = requests .exceptions .HTTPError ("500 Server Error" )
954
954
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 )
956
956
957
957
# Set up mocks for the entire call chain
958
958
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):
988
988
self .assertIn (detailed_error_message , reasons )
989
989
990
990
# 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 } ' )
992
992
993
993
def test_get_variation_cmab_experiment_forced_variation (self ):
994
994
"""Test get_variation with CMAB experiment when user has a forced variation."""
You can’t perform that action at this time.
0 commit comments