Skip to content

Commit 0eb416a

Browse files
committed
Add test for object store repr
1 parent ca261b1 commit 0eb416a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_store/test_object.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ def store_kwargs(self, tmpdir) -> dict[str, str | bool]:
2020
@pytest.fixture
2121
def store(self, store_kwargs: dict[str, str | bool]) -> ObjectStore:
2222
return self.store_cls(**store_kwargs)
23+
24+
def test_store_repr(self, store: ObjectStore) -> None:
25+
from fnmatch import fnmatch
26+
27+
pattern = "ObjectStore(object://LocalStore(file:///*))"
28+
assert fnmatch(f"{store!r}", pattern)

0 commit comments

Comments
 (0)