Skip to content

Commit 6e1e8ad

Browse files
committed
lint
1 parent 64490f0 commit 6e1e8ad

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

tests/decider_tests.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,9 @@ def test_get_experiment(self):
12631263
self.assertEqual(experiment.stop_ts, cfg["stop_ts"])
12641264
self.assertEqual(experiment.owner, cfg["owner"])
12651265

1266-
def test_get_variant_without_expose_with_HG_as_control_1_and_child_returns_none_does_expose(self):
1266+
def test_get_variant_without_expose_with_HG_as_control_1_and_child_returns_none_does_expose(
1267+
self
1268+
):
12671269
self.exp_base_config["exp_1"].update({"parent_hg_name": "hg"})
12681270
# force child "exp_1" to return `None`
12691271
self.exp_base_config["exp_1"]["experiment"]["variants"] = [
@@ -1273,18 +1275,8 @@ def test_get_variant_without_expose_with_HG_as_control_1_and_child_returns_none_
12731275
self.exp_base_config.update(self.parent_hg_config)
12741276
# force "hg" to bucket "control_1"
12751277
self.exp_base_config["hg"]["experiment"]["variants"] = [
1276-
{
1277-
"name": "control_1",
1278-
"size": 1.00,
1279-
"range_end": 1.0,
1280-
"range_start": 0
1281-
},
1282-
{
1283-
"name": "holdout",
1284-
"size": 0.00,
1285-
"range_end": 0.0,
1286-
"range_start": 0.00
1287-
}
1278+
{"name": "control_1", "size": 1.00, "range_end": 1.0, "range_start": 0},
1279+
{"name": "holdout", "size": 0.00, "range_end": 0.0, "range_start": 0.00},
12881280
]
12891281

12901282
with create_temp_config_file(self.exp_base_config) as f:
@@ -1304,6 +1296,7 @@ def test_get_variant_without_expose_with_HG_as_control_1_and_child_returns_none_
13041296
experiment_name="hg", variant="control_1", event_fields=event_fields
13051297
)
13061298

1299+
13071300
class TestDeciderGetDynamicConfig(unittest.TestCase):
13081301
def setUp(self):
13091302
super().setUp()

0 commit comments

Comments
 (0)