Lightly updates tests

This commit is contained in:
Mouse Reeve
2021-10-04 09:47:33 -07:00
parent 443750d6db
commit 321949f2fa
3 changed files with 5 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class RedisStore(ABC):
def remove_object_from_related_stores(self, obj, stores=None):
"""remove an object from all stores"""
stores = stores or self.get_stores_for_object(obj)
stores = self.get_stores_for_object(obj) if stores is None else stores
pipeline = r.pipeline()
for store in stores:
pipeline.zrem(store, -1, obj.id)