mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
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:
parent
98df8386e8
commit
43baad52a0
2 changed files with 2 additions and 4 deletions
BIN
tests/data/packages/INITools-0.2.tar.gz
Normal file
BIN
tests/data/packages/INITools-0.2.tar.gz
Normal file
Binary file not shown.
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue