Skip to content

Commit bc98adc

Browse files
Rename testcase to remove replace_ids_with_names.
1 parent 1cd6aab commit bc98adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tests/test_optimizely_config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ def test_stringify_conditions_empty_string(self):
14291429

14301430
self.assertEqual(result, expected_result)
14311431

1432-
def test_update_experiment(self):
1432+
def test_replace_ids_with_names(self):
14331433
''' Test that OptimizelyExperiment updates with proper conditions for audiences '''
14341434

14351435
audience_conditions = ['and', ['or', '432', '321'], '543']
@@ -1457,8 +1457,8 @@ def test_update_experiment(self):
14571457

14581458
config_service = optimizely_config.OptimizelyConfigService(config)
14591459

1460-
config_service.update_experiment(optly_experiment, audience_conditions, audiences_map)
1461-
1460+
audiences = config_service.replace_ids_with_names(audience_conditions, audiences_map)
1461+
optly_experiment.audiences = audiences
14621462
expected_value = '("us" OR "female") AND "adult"'
14631463

14641464
self.assertEqual(optly_experiment.audiences, expected_value)

0 commit comments

Comments
 (0)