Skip to content

Commit

Permalink
Merge pull request #4719 from pradyunsg/ci/travis-test-fix-1
Browse files Browse the repository at this point in the history
Fix Tests by depending on testpypi
  • Loading branch information
pfmoore committed Sep 15, 2017
2 parents 6e2391a + fcfdc0f commit 54b983c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/functional/test_install_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,24 @@ def test_command_line_append_flags(script, virtualenv, data):
variables.
"""
script.environ['PIP_FIND_LINKS'] = 'http://pypi.pinaxproject.com'
script.environ['PIP_FIND_LINKS'] = 'https://testpypi.python.org'
result = script.pip(
'install', '-vvv', 'INITools', '--trusted-host',
'pypi.pinaxproject.com',
'testpypi.python.org',
expect_error=True,
)
assert (
"Analyzing links from page http://pypi.pinaxproject.com"
"Analyzing links from page https://testpypi.python.org"
in result.stdout
)
), str(result)
virtualenv.clear()
result = script.pip(
'install', '-vvv', '--find-links', data.find_links, 'INITools',
'--trusted-host', 'pypi.pinaxproject.com',
'--trusted-host', 'testpypi.python.org',
expect_error=True,
)
assert (
"Analyzing links from page http://pypi.pinaxproject.com"
"Analyzing links from page https://testpypi.python.org"
in result.stdout
)
assert "Skipping link %s" % data.find_links in result.stdout
Expand All @@ -115,16 +115,16 @@ def test_command_line_appends_correctly(script, data):
"""
script.environ['PIP_FIND_LINKS'] = (
'http://pypi.pinaxproject.com %s' % data.find_links
'https://testpypi.python.org %s' % data.find_links
)
result = script.pip(
'install', '-vvv', 'INITools', '--trusted-host',
'pypi.pinaxproject.com',
'testpypi.python.org',
expect_error=True,
)

assert (
"Analyzing links from page http://pypi.pinaxproject.com"
"Analyzing links from page https://testpypi.python.org"
in result.stdout
), result.stdout
assert "Skipping link %s" % data.find_links in result.stdout
Expand Down

0 comments on commit 54b983c

Please sign in to comment.