@@ -24,9 +24,9 @@ def test_put_fetch(self):
2424 with open (split_fn , 'r' ) as flo :
2525 data = json .loads (flo .read ())
2626 for split in data ['splits' ]:
27- adapter .set (storage ._prefix .format (split_name = split ['name' ]), split )
27+ adapter .set (storage ._prefix .format (feature_flag_name = split ['name' ]), split )
2828 adapter .increment (storage ._traffic_type_prefix .format (traffic_type_name = split ['trafficTypeName' ]), 1 )
29- adapter .set (storage ._split_till_prefix , data ['till' ])
29+ adapter .set (storage ._feature_flag_till_prefix , data ['till' ])
3030
3131 split_objects = [splits .from_raw (raw ) for raw in data ['splits' ]]
3232 for split_object in split_objects :
@@ -53,7 +53,7 @@ def test_put_fetch(self):
5353 assert len (original_condition .matchers ) == len (fetched_condition .matchers )
5454 assert len (original_condition .partitions ) == len (fetched_condition .partitions )
5555
56- adapter .set (storage ._split_till_prefix , data ['till' ])
56+ adapter .set (storage ._feature_flag_till_prefix , data ['till' ])
5757 assert storage .get_change_number () == data ['till' ]
5858
5959 assert storage .is_valid_traffic_type ('user' ) is True
@@ -90,9 +90,9 @@ def test_get_all(self):
9090 with open (split_fn , 'r' ) as flo :
9191 data = json .loads (flo .read ())
9292 for split in data ['splits' ]:
93- adapter .set (storage ._prefix .format (split_name = split ['name' ]), split )
93+ adapter .set (storage ._prefix .format (feature_flag_name = split ['name' ]), split )
9494 adapter .increment (storage ._traffic_type_prefix .format (traffic_type_name = split ['trafficTypeName' ]), 1 )
95- adapter .set (storage ._split_till_prefix , data ['till' ])
95+ adapter .set (storage ._feature_flag_till_prefix , data ['till' ])
9696
9797 split_objects = [splits .from_raw (raw ) for raw in data ['splits' ]]
9898 original_splits = {split .name : split for split in split_objects }
@@ -261,9 +261,9 @@ async def test_put_fetch(self):
261261 with open (split_fn , 'r' ) as flo :
262262 data = json .loads (flo .read ())
263263 for split in data ['splits' ]:
264- await adapter .set (storage ._prefix .format (split_name = split ['name' ]), split )
264+ await adapter .set (storage ._prefix .format (feature_flag_name = split ['name' ]), split )
265265 await adapter .increment (storage ._traffic_type_prefix .format (traffic_type_name = split ['trafficTypeName' ]), 1 )
266- await adapter .set (storage ._split_till_prefix , data ['till' ])
266+ await adapter .set (storage ._feature_flag_till_prefix , data ['till' ])
267267
268268 split_objects = [splits .from_raw (raw ) for raw in data ['splits' ]]
269269 for split_object in split_objects :
@@ -290,7 +290,7 @@ async def test_put_fetch(self):
290290 assert len (original_condition .matchers ) == len (fetched_condition .matchers )
291291 assert len (original_condition .partitions ) == len (fetched_condition .partitions )
292292
293- await adapter .set (storage ._split_till_prefix , data ['till' ])
293+ await adapter .set (storage ._feature_flag_till_prefix , data ['till' ])
294294 assert await storage .get_change_number () == data ['till' ]
295295
296296 assert await storage .is_valid_traffic_type ('user' ) is True
@@ -328,9 +328,9 @@ async def test_get_all(self):
328328 with open (split_fn , 'r' ) as flo :
329329 data = json .loads (flo .read ())
330330 for split in data ['splits' ]:
331- await adapter .set (storage ._prefix .format (split_name = split ['name' ]), split )
331+ await adapter .set (storage ._prefix .format (feature_flag_name = split ['name' ]), split )
332332 await adapter .increment (storage ._traffic_type_prefix .format (traffic_type_name = split ['trafficTypeName' ]), 1 )
333- await adapter .set (storage ._split_till_prefix , data ['till' ])
333+ await adapter .set (storage ._feature_flag_till_prefix , data ['till' ])
334334
335335 split_objects = [splits .from_raw (raw ) for raw in data ['splits' ]]
336336 original_splits = {split .name : split for split in split_objects }
0 commit comments