Skip to content

Commit

Permalink
add a few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Oct 19, 2023
1 parent 94c56fd commit cc30432
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test_0976_path_object_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@ def test_url_split():
"Dir/Test",
),
),
(
"ssh://user@host:port/path/to/file:object",
(
"ssh://user@host:port/path/to/file",
"object",
),
),
(
"ssh://user@host:port/path/to/file",
(
"ssh://user@host:port/path/to/file",
None,
),
),
(
"s3://bucket/path/to/file:object",
(
"s3://bucket/path/to/file",
"object",
),
),
]:
url, obj = uproot._util.file_object_path_split(input_url)
assert url == result[0]
Expand Down

0 comments on commit cc30432

Please sign in to comment.