Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Nov 15, 2024
1 parent 8d3b66c commit 5e5376f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
test_bucket_name = "test"
secure_bucket_name = "test-secure"


def as_mutable(store: Store) -> Store:
"""
Return a mutable version of the store
Expand All @@ -48,7 +49,8 @@ def as_mutable(store: Store) -> Store:
if isinstance(store, ZipStore):
store.close()
return sync(ZipStore.open(path=store.path, read_only=False))
raise ValueError(f'Unknown store type: {type(store)}')
raise ValueError(f"Unknown store type: {type(store)}")


def as_immutable(store: Store) -> Store:
"""
Expand All @@ -63,7 +65,8 @@ def as_immutable(store: Store) -> Store:
if isinstance(store, ZipStore):
store.close()
return sync(ZipStore.open(path=store.path, read_only=True))
raise ValueError(f'Unknown store type: {type(store)}')
raise ValueError(f"Unknown store type: {type(store)}")


async def parse_store(
store: str,
Expand Down

0 comments on commit 5e5376f

Please sign in to comment.