Skip to content

Commit 6efb145

Browse files
committed
Remove get_experiment_keys as it is not used
1 parent a6977a2 commit 6efb145

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

optimizely/project_config.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,6 @@ def get_project_id(self):
110110

111111
return self.project_id
112112

113-
def get_experiment_keys(self):
114-
""" Get list of all experiment keys in the project.
115-
116-
Returns:
117-
List of all experiment keys.
118-
"""
119-
120-
return list(self.experiment_key_map.keys())
121-
122113
def get_experiment_group_id(self, experiment_key):
123114
""" Get group ID for the provided experiment key.
124115

tests/test_config.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,6 @@ def test_get_project_id(self):
128128

129129
self.assertEqual(self.config_dict['projectId'], self.project_config.get_project_id())
130130

131-
def test_get_experiment_keys(self):
132-
""" Test that list of all experiment keys is retrieved as expected. """
133-
134-
self.assertEqual(['group_exp_1', 'group_exp_2', 'test_experiment'],
135-
sorted(self.project_config.get_experiment_keys()))
136-
137131
def test_get_experiment_group_id__valid_key(self):
138132
""" Test that experiment group ID is retrieved correctly for valid experiment key. """
139133

0 commit comments

Comments
 (0)