Rename to 'Package index page cache location'

This commit is contained in:
Hugo van Kemenade 2020-10-02 09:59:38 +03:00
parent d45ba65c37
commit 0652a2f016
2 changed files with 6 additions and 3 deletions

View File

@ -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}

View File

@ -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