File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -224,15 +224,15 @@ def check_num_keys_equal(self) -> None:
224
224
225
225
@invariant ()
226
226
def check_keys (self ) -> None :
227
- # For local store, this can be empty if there are no files,
228
- # but there are subfolders that weren't cleared.
229
227
keys = list (self .store .list ())
230
228
231
- # if len(keys) == 0:
232
- # assert self.store.empty() is True
229
+ # NOTE: A local store can be non-empty if there are no files,
230
+ # but there are subfolders that weren't cleared.
231
+ if len (keys ) == 0 :
232
+ assert self .store .empty () is True
233
233
234
- # elif len(keys) != 0:
235
- # assert self.store.empty() is False
234
+ elif len (keys ) != 0 :
235
+ assert self .store .empty () is False
236
236
237
237
for key in keys :
238
238
assert self .store .exists (key ) is True
You can’t perform that action at this time.
0 commit comments