Skip to content

Commit

Permalink
test_impl: invalid cases as well
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Nov 6, 2024
1 parent aead0fa commit 5161b7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ def test_ultranormalize_dist_filename(input: str, normalized: str) -> None:
"foo",
# suffixes must be lowercase
"foo-1.0.TAR.GZ",
"foo-1.0.ZIP",
"foo-1.0-py3-none-any.WHL",
# wheel: invalid separator in dist name
"foo-bar-1.0-py3-none-any.whl",
Expand All @@ -511,6 +512,13 @@ def test_ultranormalize_dist_filename(input: str, normalized: str) -> None:
# sdist: invalid version
"foo-charmander.tar.gz",
"foo-1charmander.tar.gz",
"foo-charmander.zip",
"foo-1charmander.zip",
# sdist: nonsense suffixes
"foo-1.2.3.junk.zip",
"foo-1.2.3.junk.tar.gz",
"foo-1.2.3.zip.tar.gz",
"foo-1.2.3.tar.gz.zip",
],
)
def test_ultranormalize_dist_filename_invalid(input: str) -> None:
Expand Down

0 comments on commit 5161b7f

Please sign in to comment.