-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74e023d
commit 32b7a97
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
) |