Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional unit test cases as part of review of #361 #1

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ def test_make_relative_href_url(self) -> None:
"https://stacspec.org/a/b/c/catalog.json",
"http://stacspec.org/a/",
),
(
"http://stacspec.org/.a",
"http://stacspec.org/",
".a"
),
(
"http://stacspec.org/a/.b",
"http://stacspec.org/a/foo.txt",
".b"
)
]

for source_href, start_href, expected in test_cases:
Expand Down