From 5c646c42b58a1c9e2acb856e030ea09540a8dbdd Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Fri, 8 Mar 2024 15:53:18 +0100 Subject: [PATCH] tests: pkginfo w/ metadata version 2.3 --- ...etadata_version_23-0.1.0-py2.py3-none-any.whl | Bin 0 -> 1151 bytes tests/inspection/test_info.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/fixtures/distributions/demo_metadata_version_23-0.1.0-py2.py3-none-any.whl diff --git a/tests/fixtures/distributions/demo_metadata_version_23-0.1.0-py2.py3-none-any.whl b/tests/fixtures/distributions/demo_metadata_version_23-0.1.0-py2.py3-none-any.whl new file mode 100644 index 0000000000000000000000000000000000000000..91691fd70285317ef5aee2c4013c35a285e07001 GIT binary patch literal 1151 zcmWIWW@Zs#W?UGrF6rlI%j5N>VFE-{vD9kH)fvwR*WnMHqhf1~_U zX5WnHOI{i4i^?sYTN^Wf_Tb|#k=Q$FW6*V`q|<_q~G7$D!Adt-^fL!ld@)1y*5}LD>Bh3l5@kB)9Y8B z+IS=mN^Y%aRb9u8dsPGxjOp?x#XVNUDjm4z;NMizNf*2PX#X=dnNQY0F#-?|FW_1#@Qp$yeBv!yOsq%eJa``E#3PQ|=zRp;!I%_>y<- zbE-qdKYBj;^?>c-s#blGh3m4Pex8*Y)2y&Ve%Tft&xp3|!td-OO3qAf?&JRC@Z(a4 znxwhuyj9*`z6SG)X5Z13JG+j3U+=r+tg&gVj0t6|sA1qRm4`hX==TU9mckVV;U2E8 zKD?(Kxf&D%STF2d{((t3?ZP2$m)#vJwjNyGGNaQ|{NBEMzut-$TxP4?T(D*C=QI}Q zV8PyRf+D%scI)jpsH4=nZ2GfRJ3b5MUgX-m>~p{Fj^$sE99nSXYz@pgK)V?f8Jf5X zUy1=)AS?jHpk%HeAD@|*SrQ+wS5O%rUzS=_oSB~&AFp7mpbpLe>RbWdj7;{-xH5|h z&>Rp@Xjsw+qVZ-OE(QgV8U{uN35EvY8CO#aZ!x0NAnQb!ai=4&0YIXGF$9>huv!O6 zRphoF$FVq2?fmX@EB?8%PBU5ZVD9tPL!57#INC C>Y7vl literal 0 HcmV?d00001 diff --git a/tests/inspection/test_info.py b/tests/inspection/test_info.py index ef94aee43db..b986043924e 100644 --- a/tests/inspection/test_info.py +++ b/tests/inspection/test_info.py @@ -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)