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:
parent
6727972508
commit
33d7d65da1
|
@ -226,7 +226,7 @@ def test_basic_install_from_pypi(script):
|
||||||
"""
|
"""
|
||||||
Test installing a package from PyPI.
|
Test installing a package from PyPI.
|
||||||
"""
|
"""
|
||||||
result = script.pip('install', '-vvv', 'INITools==0.2')
|
result = script.pip('install', 'INITools==0.2')
|
||||||
egg_info_folder = (
|
egg_info_folder = (
|
||||||
script.site_packages / 'INITools-0.2-py%s.egg-info' % pyversion
|
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 indexes: " not in result.stdout
|
||||||
assert "Looking in links: " 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):
|
def test_basic_editable_install(script):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue