Skip to content

Commit

Permalink
Update test to verify that full URL is not printed
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Oct 16, 2019
1 parent feeaaf3 commit b3bb466
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,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
)
Expand All @@ -237,6 +237,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):
"""
Expand Down

0 comments on commit b3bb466

Please sign in to comment.