mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #4719 from pradyunsg/ci/travis-test-fix-1
Fix Tests by depending on testpypi
This commit is contained in:
commit
54b983c2bd
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue