summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-10 14:46:12 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-14 08:03:49 +0200
commitbd746e3136e5e1be2374a079bac66071dd967a8c (patch)
tree899f6b1ca027daae876c3379f98985a26546559c /tests
parentcaafe6e87d4f2998a77b194297e1c204cf6e10c2 (diff)
downloadpip-bd746e3136e5e1be2374a079bac66071dd967a8c.tar.gz
Introduce ireq.cached_wheel_source_link
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_req.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_req.py b/tests/unit/test_req.py
index eb486ba0f..c9742812b 100644
--- a/tests/unit/test_req.py
+++ b/tests/unit/test_req.py
@@ -412,6 +412,7 @@ class TestRequirementSet:
assert len(reqset.all_requirements) == 1
req = reqset.all_requirements[0]
assert req.is_wheel_from_cache
+ assert req.cached_wheel_source_link
assert req.download_info
assert req.download_info.url == url
assert isinstance(req.download_info.info, ArchiveInfo)
@@ -438,6 +439,7 @@ class TestRequirementSet:
assert len(reqset.all_requirements) == 1
req = reqset.all_requirements[0]
assert req.is_wheel_from_cache
+ assert req.cached_wheel_source_link
assert req.download_info
assert req.download_info.url == url
assert isinstance(req.download_info.info, ArchiveInfo)