summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-10 14:32:55 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-14 08:03:48 +0200
commita6ef6485be9512f18121298b058797c578f65d45 (patch)
tree306ca39025bc4c4b90c625f8bc9fe2f210df69b6 /tests
parentff8c8e38887880ad81ffd7cfc6a8373213c087b7 (diff)
downloadpip-a6ef6485be9512f18121298b058797c578f65d45.tar.gz
Rename original_link_is_in_wheel_cache to is_wheel_from_cache
This more accurately reflects that it is not necessarily related to original_link, original_link being the direct URL link, and the wheel cache can also be populated from sdists URL discovered by the finder.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_req.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_req.py b/tests/unit/test_req.py
index a5286c13a..eb486ba0f 100644
--- a/tests/unit/test_req.py
+++ b/tests/unit/test_req.py
@@ -411,7 +411,7 @@ class TestRequirementSet:
reqset = resolver.resolve([ireq], True)
assert len(reqset.all_requirements) == 1
req = reqset.all_requirements[0]
- assert req.original_link_is_in_wheel_cache
+ assert req.is_wheel_from_cache
assert req.download_info
assert req.download_info.url == url
assert isinstance(req.download_info.info, ArchiveInfo)
@@ -437,7 +437,7 @@ class TestRequirementSet:
reqset = resolver.resolve([ireq], True)
assert len(reqset.all_requirements) == 1
req = reqset.all_requirements[0]
- assert req.original_link_is_in_wheel_cache
+ assert req.is_wheel_from_cache
assert req.download_info
assert req.download_info.url == url
assert isinstance(req.download_info.info, ArchiveInfo)