From 7e8c1c2a620309492bf3e9cc0d8be7014649eb1d Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Tue, 17 Sep 2024 22:03:54 -0600 Subject: [PATCH] cleanup --- tests/v3/test_store/test_stateful_store.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/v3/test_store/test_stateful_store.py b/tests/v3/test_store/test_stateful_store.py index e402682dd8..a753abe18c 100644 --- a/tests/v3/test_store/test_stateful_store.py +++ b/tests/v3/test_store/test_stateful_store.py @@ -224,18 +224,18 @@ def check_num_keys_equal(self) -> None: @invariant() def check_keys(self) -> None: - # For local store, this can be empty if there are no files, - # but there are subfolders that weren't cleared. keys = list(self.store.list()) - # if len(keys) == 0: - # assert self.store.empty() is True + # NOTE: A local store can be non-empty if there are no files, + # but there are subfolders that weren't cleared. + if len(keys) == 0: + assert self.store.empty() is True - # elif len(keys) != 0: - # assert self.store.empty() is False + elif len(keys) != 0: + assert self.store.empty() is False - for key in keys: - assert self.store.exists(key) is True + for key in keys: + assert self.store.exists(key) is True note("checking keys / exists / empty")