Skip to content

Commit 0315e0b

Browse files
committed
fixup
1 parent 4e8a925 commit 0315e0b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_store/test_zep8.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,8 +2289,14 @@ async def test_url_store_resolver_error_handling() -> None:
22892289
with pytest.raises(ValueError, match="Unknown store adapter"):
22902290
await resolver.resolve_url("unknown_adapter:")
22912291

2292-
# Test malformed URL that gets past initial parsing
2292+
# Test valid adapter name format but unknown adapter
22932293
with pytest.raises(ValueError, match="Unknown store adapter"):
2294+
await resolver.resolve_url("validbutunknown:")
2295+
2296+
# Test invalid adapter name format (starts with number)
2297+
from zarr.storage._zep8 import ZEP8URLError
2298+
2299+
with pytest.raises(ZEP8URLError, match="Invalid adapter name"):
22942300
await resolver.resolve_url("999invalid:")
22952301

22962302

0 commit comments

Comments
 (0)