Skip to content

Commit 32b7a97

Browse files
committed
test
1 parent 74e023d commit 32b7a97

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

fsspec/tests/test_core.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,20 @@ def test_chained_url(ftp_writable):
465465
def test_automkdir_local():
466466
fs, _ = fsspec.core.url_to_fs("file://", auto_mkdir=True)
467467
assert fs.auto_mkdir is True
468+
469+
470+
def test_repeated_argument():
471+
from fsspec.core import url_to_fs
472+
473+
fs, url = url_to_fs(
474+
"az://[email protected]/DATA",
475+
anon=False,
476+
account_name="ACCOUNT",
477+
)
478+
assert fs.storage_options == {"account_name": "ACCOUNT", "anon": False}
479+
with pytest.raises(TypeError):
480+
url_to_fs(
481+
"az://[email protected]/DATA",
482+
anon=False,
483+
account_name="OTHER",
484+
)

0 commit comments

Comments
 (0)