File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2289,8 +2289,14 @@ async def test_url_store_resolver_error_handling() -> None:
2289
2289
with pytest .raises (ValueError , match = "Unknown store adapter" ):
2290
2290
await resolver .resolve_url ("unknown_adapter:" )
2291
2291
2292
- # Test malformed URL that gets past initial parsing
2292
+ # Test valid adapter name format but unknown adapter
2293
2293
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" ):
2294
2300
await resolver .resolve_url ("999invalid:" )
2295
2301
2296
2302
You can’t perform that action at this time.
0 commit comments