Skip to content

Commit fd7c723

Browse files
update: fix logger message formatting in CMAB experiment tests
1 parent c1cd97a commit fd7c723

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_decision_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ def test_get_variation_cmab_experiment_user_in_traffic_allocation(self):
808808
self.assertEqual('test-cmab-uuid-123', cmab_uuid)
809809

810810
# Verify logger was called
811-
mock_logger.info.assert_any_call('User "test_user" is in variation\
812-
"variation_1" of experiment cmab_experiment.')
811+
mock_logger.info.assert_any_call('User "test_user" is in variation '
812+
'"variation_1" of experiment cmab_experiment.')
813813

814814
def test_get_variation_cmab_experiment_user_not_in_traffic_allocation(self):
815815
"""Test get_variation with CMAB experiment where user is not in traffic allocation."""
@@ -857,8 +857,8 @@ def test_get_variation_cmab_experiment_user_not_in_traffic_allocation(self):
857857
mock_cmab_decision.assert_not_called()
858858

859859
# Verify logger was called
860-
mock_logger.info.assert_any_call('User "test_user" not in CMAB\
861-
experiment "cmab_experiment" due to traffic allocation.')
860+
mock_logger.info.assert_any_call('User "test_user" not in CMAB '
861+
'experiment "cmab_experiment" due to traffic allocation.')
862862

863863
def test_get_variation_cmab_experiment_service_error(self):
864864
"""Test get_variation with CMAB experiment when the CMAB service returns an error."""

0 commit comments

Comments
 (0)