Skip to content

Commit

Permalink
Update test and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed Dec 11, 2023
1 parent d1356f1 commit 60e1565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/iris/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def decode_uri(uri, default="file"):
--------
>>> from iris.io import decode_uri
>>> print(decode_uri('https://www.thing.com:8080/resource?id=a:b'))
('http', '//www.thing.com:8080/resource?id=a:b')
('https', '//www.thing.com:8080/resource?id=a:b')
>>> print(decode_uri('file:///data/local/dataZoo/...'))
('file', '///data/local/dataZoo/...')
Expand Down
4 changes: 2 additions & 2 deletions lib/iris/tests/test_io_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def test_decode_uri__str(self):
uri[5:],
),
(uri := "https://www.somehost.com:8080/resource/thing.grib"): (
uri[:4],
uri[5:],
uri[:5],
uri[6:],
),
(uri := "/data/local/someDir/2013-11-25T13:49:17.632797"): (
"file",
Expand Down

0 comments on commit 60e1565

Please sign in to comment.