Skip to content

Commit 0866962

Browse files
committed
Fix lint issues
1 parent d9e8f83 commit 0866962

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

optimizely/event/user_event_factory.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def create_impression_event(
7676
variation = project_config.get_variation_from_id_by_experiment_id(experiment_id, variation_id)
7777

7878
event_context = user_event.EventContext(
79-
project_config.account_id, project_config.project_id, project_config.revision, project_config.anonymize_ip, project_config.region
79+
project_config.account_id,
80+
project_config.project_id,
81+
project_config.revision,
82+
project_config.anonymize_ip,
83+
project_config.region
8084
)
8185

8286
return user_event.ImpressionEvent(
@@ -115,7 +119,11 @@ def create_conversion_event(
115119
"""
116120

117121
event_context = user_event.EventContext(
118-
project_config.account_id, project_config.project_id, project_config.revision, project_config.anonymize_ip, project_config.region
122+
project_config.account_id,
123+
project_config.project_id,
124+
project_config.revision,
125+
project_config.anonymize_ip,
126+
project_config.region
119127
)
120128

121129
return user_event.ConversionEvent(

tests/test_config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def test_region_when_no_region(self):
161161
project_config = opt_obj.config_manager.get_config()
162162
self.assertEqual(project_config.region, Region.US)
163163

164-
165164
def test_region_when_specified_in_datafile(self):
166165
""" Test that region is set to 'US' when specified in the config. """
167166
config_dict_us = copy.deepcopy(self.config_dict_with_multiple_experiments)
@@ -177,8 +176,6 @@ def test_region_when_specified_in_datafile(self):
177176
project_config_eu = opt_obj_eu.config_manager.get_config()
178177
self.assertEqual(project_config_eu.region, Region.EU)
179178

180-
181-
182179
def test_cmab_field_population(self):
183180
""" Test that the cmab field is populated correctly in experiments."""
184181

0 commit comments

Comments
 (0)