test_freeze: Don't depend on PyPI

by adding tests/data/packages/INITools-0.2.tar.gz so tests can get file
locally instead of from PyPI.
This commit is contained in:
Marc Abramowitz 2015-03-09 12:10:03 -07:00
parent 98df8386e8
commit 43baad52a0
2 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -309,13 +309,12 @@ def test_freeze_bazaar_clone(script, tmpdir):
_check_output(result, expected)
@pytest.mark.network
def test_freeze_with_local_option(script):
"""
Test that wsgiref (from global site-packages) is reported normally, but not
with --local.
"""
result = script.pip('install', 'initools==0.2')
result = script.pip_install_local('initools==0.2')
result = script.pip('freeze', expect_stderr=True)
expected = textwrap.dedent("""\
Script result: ...pip freeze
@ -340,7 +339,6 @@ def test_freeze_with_local_option(script):
_check_output(result, expected)
@pytest.mark.network
def test_freeze_with_requirement_option(script):
"""
Test that new requirements are created correctly with --requirement hints
@ -362,7 +360,7 @@ def test_freeze_with_requirement_option(script):
INITools==0.1
NoExist==4.2
""") + ignores)
result = script.pip('install', 'initools==0.2')
result = script.pip_install_local('initools==0.2')
result = script.pip_install_local('simple')
result = script.pip(
'freeze', '--requirement', 'hint.txt',