From 0652a2f016b959a4adca67806b3aa30991196ab7 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 2 Oct 2020 09:59:38 +0300 Subject: [PATCH] Rename to 'Package index page cache location' --- src/pip/_internal/commands/cache.py | 4 ++-- tests/functional/test_cache.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pip/_internal/commands/cache.py b/src/pip/_internal/commands/cache.py index efba24f1a..ec21be68f 100644 --- a/src/pip/_internal/commands/cache.py +++ b/src/pip/_internal/commands/cache.py @@ -113,8 +113,8 @@ class CacheCommand(Command): ) message = textwrap.dedent(""" - HTTP files location: {http_cache_location} - HTTP files size: {http_cache_size} + Package index page cache location: {http_cache_location} + Package index page cache size: {http_cache_size} Number of HTTP files: {num_http_files} Wheels location: {wheels_cache_location} Wheels size: {wheels_cache_size} diff --git a/tests/functional/test_cache.py b/tests/functional/test_cache.py index a1ffd9090..872f55982 100644 --- a/tests/functional/test_cache.py +++ b/tests/functional/test_cache.py @@ -190,7 +190,10 @@ def test_cache_info( ): result = script.pip('cache', 'info') - assert 'HTTP files location: {}'.format(http_cache_dir) in result.stdout + assert ( + 'Package index page cache location: {}'.format(http_cache_dir) + in result.stdout + ) assert 'Wheels location: {}'.format(wheel_cache_dir) in result.stdout num_wheels = len(wheel_cache_files) assert 'Number of wheels: {}'.format(num_wheels) in result.stdout