Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Oct 16, 2024
1 parent 74e023d commit 32b7a97
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions fsspec/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,20 @@ def test_chained_url(ftp_writable):
def test_automkdir_local():
fs, _ = fsspec.core.url_to_fs("file://", auto_mkdir=True)
assert fs.auto_mkdir is True


def test_repeated_argument():
from fsspec.core import url_to_fs

fs, url = url_to_fs(
"az://[email protected]/DATA",
anon=False,
account_name="ACCOUNT",
)
assert fs.storage_options == {"account_name": "ACCOUNT", "anon": False}
with pytest.raises(TypeError):
url_to_fs(
"az://[email protected]/DATA",
anon=False,
account_name="OTHER",
)

0 comments on commit 32b7a97

Please sign in to comment.