@@ -28,6 +28,7 @@ def test_get_treatment(self, mocker):
2828 conditions_mock = mocker .PropertyMock ()
2929 conditions_mock .return_value = []
3030 type(split_mock ).conditions = conditions_mock
31+ type(split_mock ).prerequisites = []
3132 storage_mock = mocker .Mock (spec = SplitStorage )
3233 storage_mock .fetch_many .return_value = {'some_feature' : split_mock }
3334 rbs_storage = mocker .Mock (spec = InMemoryRuleBasedSegmentStorage )
@@ -264,6 +265,7 @@ def test_get_treatment_with_config(self, mocker):
264265 conditions_mock = mocker .PropertyMock ()
265266 conditions_mock .return_value = []
266267 type(split_mock ).conditions = conditions_mock
268+ type(split_mock ).prerequisites = []
267269
268270 def _configs (treatment ):
269271 return '{"some": "property"}' if treatment == 'default_treatment' else None
@@ -819,6 +821,8 @@ def test_get_treatments(self, mocker):
819821 conditions_mock = mocker .PropertyMock ()
820822 conditions_mock .return_value = []
821823 type(split_mock ).conditions = conditions_mock
824+ type(split_mock ).prerequisites = []
825+
822826 storage_mock = mocker .Mock (spec = SplitStorage )
823827 storage_mock .fetch_many .return_value = {
824828 'some_feature' : split_mock
@@ -965,6 +969,7 @@ def test_get_treatments_with_config(self, mocker):
965969 conditions_mock = mocker .PropertyMock ()
966970 conditions_mock .return_value = []
967971 type(split_mock ).conditions = conditions_mock
972+ type(split_mock ).prerequisites = []
968973
969974 storage_mock = mocker .Mock (spec = SplitStorage )
970975 storage_mock .fetch_many .return_value = {
@@ -1113,6 +1118,7 @@ def test_get_treatments_by_flag_set(self, mocker):
11131118 conditions_mock = mocker .PropertyMock ()
11141119 conditions_mock .return_value = []
11151120 type(split_mock ).conditions = conditions_mock
1121+ type(split_mock ).prerequisites = []
11161122 storage_mock = mocker .Mock (spec = InMemorySplitStorage )
11171123 storage_mock .fetch_many .return_value = {
11181124 'some_feature' : split_mock
@@ -1231,6 +1237,7 @@ def test_get_treatments_by_flag_sets(self, mocker):
12311237 conditions_mock = mocker .PropertyMock ()
12321238 conditions_mock .return_value = []
12331239 type(split_mock ).conditions = conditions_mock
1240+ type(split_mock ).prerequisites = []
12341241 storage_mock = mocker .Mock (spec = InMemorySplitStorage )
12351242 storage_mock .fetch_many .return_value = {
12361243 'some_feature' : split_mock
@@ -1358,6 +1365,7 @@ def _configs(treatment):
13581365 conditions_mock = mocker .PropertyMock ()
13591366 conditions_mock .return_value = []
13601367 type(split_mock ).conditions = conditions_mock
1368+ type(split_mock ).prerequisites = []
13611369 storage_mock = mocker .Mock (spec = InMemorySplitStorage )
13621370 storage_mock .fetch_many .return_value = {
13631371 'some_feature' : split_mock
@@ -1481,6 +1489,7 @@ def _configs(treatment):
14811489 conditions_mock = mocker .PropertyMock ()
14821490 conditions_mock .return_value = []
14831491 type(split_mock ).conditions = conditions_mock
1492+ type(split_mock ).prerequisites = []
14841493 storage_mock = mocker .Mock (spec = InMemorySplitStorage )
14851494 storage_mock .fetch_many .return_value = {
14861495 'some_feature' : split_mock
@@ -1632,6 +1641,7 @@ async def test_get_treatment(self, mocker):
16321641 conditions_mock = mocker .PropertyMock ()
16331642 conditions_mock .return_value = []
16341643 type(split_mock ).conditions = conditions_mock
1644+ type(split_mock ).prerequisites = []
16351645 storage_mock = mocker .Mock (spec = SplitStorage )
16361646 async def fetch_many (* _ ):
16371647 return {
@@ -1889,6 +1899,7 @@ async def test_get_treatment_with_config(self, mocker):
18891899 conditions_mock = mocker .PropertyMock ()
18901900 conditions_mock .return_value = []
18911901 type(split_mock ).conditions = conditions_mock
1902+ type(split_mock ).prerequisites = []
18921903
18931904 def _configs (treatment ):
18941905 return '{"some": "property"}' if treatment == 'default_treatment' else None
@@ -2423,6 +2434,7 @@ async def test_get_treatments(self, mocker):
24232434 conditions_mock = mocker .PropertyMock ()
24242435 conditions_mock .return_value = []
24252436 type(split_mock ).conditions = conditions_mock
2437+ type(split_mock ).prerequisites = []
24262438 storage_mock = mocker .Mock (spec = SplitStorage )
24272439 async def get (* _ ):
24282440 return split_mock
@@ -2586,6 +2598,7 @@ async def test_get_treatments_with_config(self, mocker):
25862598 conditions_mock = mocker .PropertyMock ()
25872599 conditions_mock .return_value = []
25882600 type(split_mock ).conditions = conditions_mock
2601+ type(split_mock ).prerequisites = []
25892602
25902603 storage_mock = mocker .Mock (spec = SplitStorage )
25912604 async def get (* _ ):
@@ -2749,6 +2762,7 @@ async def test_get_treatments_by_flag_set(self, mocker):
27492762 conditions_mock = mocker .PropertyMock ()
27502763 conditions_mock .return_value = []
27512764 type(split_mock ).conditions = conditions_mock
2765+ type(split_mock ).prerequisites = []
27522766 storage_mock = mocker .Mock (spec = SplitStorage )
27532767 async def get (* _ ):
27542768 return split_mock
@@ -2893,6 +2907,7 @@ async def test_get_treatments_by_flag_sets(self, mocker):
28932907 conditions_mock = mocker .PropertyMock ()
28942908 conditions_mock .return_value = []
28952909 type(split_mock ).conditions = conditions_mock
2910+ type(split_mock ).prerequisites = []
28962911 storage_mock = mocker .Mock (spec = SplitStorage )
28972912 async def get (* _ ):
28982913 return split_mock
@@ -3048,6 +3063,7 @@ def _configs(treatment):
30483063 conditions_mock = mocker .PropertyMock ()
30493064 conditions_mock .return_value = []
30503065 type(split_mock ).conditions = conditions_mock
3066+ type(split_mock ).prerequisites = []
30513067 storage_mock = mocker .Mock (spec = SplitStorage )
30523068 async def get (* _ ):
30533069 return split_mock
@@ -3195,6 +3211,7 @@ def _configs(treatment):
31953211 conditions_mock = mocker .PropertyMock ()
31963212 conditions_mock .return_value = []
31973213 type(split_mock ).conditions = conditions_mock
3214+ type(split_mock ).prerequisites = []
31983215 storage_mock = mocker .Mock (spec = SplitStorage )
31993216 async def get (* _ ):
32003217 return split_mock
0 commit comments