Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tests by depending on testpypi #4719

Merged
merged 1 commit into from
Sep 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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