Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Dec 2, 2024
1 parent a3c16f2 commit 808f54b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file not shown.
7 changes: 5 additions & 2 deletions tests/inspection/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,13 @@ def test_info_from_wheel(demo_wheel: Path) -> None:
assert info._source_url == demo_wheel.resolve().as_posix()


def test_info_from_wheel_metadata_version_23(fixture_dir: FixtureDirGetter) -> None:
@pytest.mark.parametrize("version", ["23", "24"])
def test_info_from_wheel_metadata_versions(
version: str, fixture_dir: FixtureDirGetter
) -> None:
path = (
fixture_dir("distributions")
/ "demo_metadata_version_23-0.1.0-py2.py3-none-any.whl"
/ f"demo_metadata_version_{version}-0.1.0-py2.py3-none-any.whl"
)
info = PackageInfo.from_wheel(path)
demo_check_info(info)
Expand Down

0 comments on commit 808f54b

Please sign in to comment.