Skip to content

Commit 55a7261

Browse files
committed
lint fix
1 parent 1aa9961 commit 55a7261

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/test_optimizely.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -1094,10 +1094,13 @@ def test_activate__whitelisting_overrides_audience_check(self):
10941094
def test_activate__bucketer_returns_none(self):
10951095
""" Test that activate returns None and does not process event when user is in no variation. """
10961096

1097-
with mock.patch('optimizely.helpers.audience.does_user_meet_audience_conditions',
1098-
return_value=True),\
1099-
mock.patch('optimizely.bucketer.Bucketer.bucket', return_value=None) as mock_bucket, \
1100-
mock.patch('optimizely.event.event_processor.ForwardingEventProcessor.process') as mock_process:
1097+
with mock.patch(
1098+
'optimizely.helpers.audience.does_user_meet_audience_conditions',
1099+
return_value=True), mock.patch(
1100+
'optimizely.bucketer.Bucketer.bucket',
1101+
return_value=None) as mock_bucket, mock.patch(
1102+
'optimizely.event.event_processor.ForwardingEventProcessor.process'
1103+
) as mock_process:
11011104
self.assertIsNone(
11021105
self.optimizely.activate('test_experiment', 'test_user', attributes={'test_attribute': 'test_value'},)
11031106
)

0 commit comments

Comments
 (0)