Skip to content

Commit cf665ec

Browse files
committed
Revert "Fixing test"
This reverts commit f260e56.
1 parent 8dedd78 commit cf665ec

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

optimizely/user_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def save_variation_for_experiment(self, experiment_id, variation_id):
4848
4949
Args:
5050
experiment_id: ID for experiment for which the decision is to be stored.
51-
variation_id: ID for variation that the user saw.
51+
variation_id: ID for variation that the user saw.
5252
"""
5353

5454
self.experiment_bucket_map.update({

tests/test_optimizely.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,10 +1214,9 @@ def side_effect(*args, **kwargs):
12141214
with mock.patch(
12151215
'optimizely.optimizely.Optimizely.is_feature_enabled',
12161216
side_effect=side_effect) as mock_is_feature_enabled:
1217-
received_features = optimizely_instance.get_enabled_features('user_1')
1217+
expected_enabled_features = ['test_feature_1', 'test_feature_2']
1218+
self.assertEqual(expected_enabled_features, optimizely_instance.get_enabled_features('user_1'))
12181219

1219-
expected_enabled_features = ['test_feature_1', 'test_feature_2']
1220-
self.assertEqual(sorted(expected_enabled_features), sorted(received_features))
12211220
mock_is_feature_enabled.assert_any_call('test_feature_1', 'user_1', None)
12221221
mock_is_feature_enabled.assert_any_call('test_feature_2', 'user_1', None)
12231222
mock_is_feature_enabled.assert_any_call('test_feature_in_group', 'user_1', None)

0 commit comments

Comments
 (0)