1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Update test to verify that full URL is not printed

This commit is contained in:
Pradyun Gedam 2019-10-15 23:21:45 +05:30
parent 6727972508
commit 33d7d65da1
No known key found for this signature in database
GPG key ID: DA17C4B29CB32E4B

View file

@ -226,7 +226,7 @@ def test_basic_install_from_pypi(script):
"""
Test installing a package from PyPI.
"""
result = script.pip('install', '-vvv', 'INITools==0.2')
result = script.pip('install', 'INITools==0.2')
egg_info_folder = (
script.site_packages / 'INITools-0.2-py%s.egg-info' % pyversion
)
@ -238,6 +238,13 @@ def test_basic_install_from_pypi(script):
assert "Looking in indexes: " not in result.stdout
assert "Looking in links: " not in result.stdout
# Ensure that we don't print the full URL.
# The URL should be trimmed to only the last part of the path in it,
# when installing from PyPI. The assertion here only checks for
# `https://` since that's likely to show up if we're not trimming in
# the correct circumstances.
assert "https://" not in result.stdout
def test_basic_editable_install(script):
"""