Skip to content

Commit

Permalink
tests: pkginfo w/ metadata version 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Mar 8, 2024
1 parent 2d303b1 commit 5c646c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file not shown.
11 changes: 11 additions & 0 deletions tests/inspection/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,17 @@ 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:
path = (
fixture_dir("distributions")
/ "demo_metadata_version_23-0.1.0-py2.py3-none-any.whl"
)
info = PackageInfo.from_wheel(path)
demo_check_info(info)
assert info._source_type == "file"
assert info._source_url == path.resolve().as_posix()


def test_info_from_wheel_metadata(demo_wheel_metadata: RawMetadata) -> None:
info = PackageInfo.from_metadata(demo_wheel_metadata)
demo_check_info(info)
Expand Down

0 comments on commit 5c646c4

Please sign in to comment.