Skip to content

Commit dd43690

Browse files
Fixed lint warnings.
1 parent 172482f commit dd43690

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

optimizely/optimizely.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,3 @@ def get_forced_variation(self, experiment_key, user_id):
306306

307307
forced_variation = self.config.get_forced_variation(experiment_key, user_id)
308308
return forced_variation.key if forced_variation else None
309-

optimizely/project_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,4 +449,3 @@ def get_forced_variation(self, experiment_key, user_id):
449449
'Variation "%s" is mapped to experiment "%s" and user "%s" in the forced variation map'
450450
% (variation.key, experiment_key, user_id))
451451
return variation
452-

tests/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ def test_set_forced_variation__multiple_sets(self):
522522
self.assertEqual(self.project_config.get_forced_variation('test_experiment', 'test_user_1').key, 'control')
523523
self.assertEqual(self.project_config.get_forced_variation('group_exp_1', 'test_user_1').key, 'group_exp_1_control')
524524

525+
525526
class ConfigLoggingTest(base.BaseTest):
526527
def setUp(self):
527528
base.BaseTest.setUp(self)

tests/test_decision_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Apache License, Version 2.0 (the "License");
33
# you may not use this file except in compliance with the License.
44
# You may obtain a copy of the License at
5-
#
5+
#
66
# http://www.apache.org/licenses/LICENSE-2.0
77

88
# Unless required by applicable law or agreed to in writing, software
@@ -305,4 +305,3 @@ def test_get_variation__user_profile_save_fails(self):
305305
mock_bucket.assert_called_once_with(experiment, 'test_user')
306306
mock_save.assert_called_once_with({'user_id': 'test_user',
307307
'experiment_bucket_map': {'111127': {'variation_id': '111129'}}})
308-

tests/test_optimizely.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ def test_get_variation__invalid_object(self):
740740

741741
mock_logging.assert_called_once_with(enums.LogLevels.ERROR, 'Datafile has invalid format. Failing "get_variation".')
742742

743+
743744
class OptimizelyWithExceptionTest(base.BaseTest):
744745

745746
def setUp(self):

0 commit comments

Comments
 (0)