1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fix tests

This commit is contained in:
johnthagen 2019-05-20 08:28:24 -04:00
parent 60019aec51
commit 9c85436573

View file

@ -4,9 +4,12 @@ from mock import patch
from pip._internal.vcs.subversion import Subversion
@patch('pip._internal.vcs.subversion.Subversion.get_remote_call_options')
@patch('pip._internal.vcs.call_subprocess')
@pytest.mark.network
def test_obtain_should_recognize_auth_info_url(call_subprocess_mock, script):
def test_obtain_should_recognize_auth_info_url(
call_subprocess_mock, get_remote_call_options_mock, script):
get_remote_call_options_mock.return_value = []
url = 'svn+http://username:password@svn.example.com/'
svn = Subversion()
svn.obtain(script.scratch_path / 'test', url=url)
@ -17,9 +20,12 @@ def test_obtain_should_recognize_auth_info_url(call_subprocess_mock, script):
]
@patch('pip._internal.vcs.subversion.Subversion.get_remote_call_options')
@patch('pip._internal.vcs.call_subprocess')
@pytest.mark.network
def test_export_should_recognize_auth_info_url(call_subprocess_mock, script):
def test_export_should_recognize_auth_info_url(
call_subprocess_mock, get_remote_call_options_mock, script):
get_remote_call_options_mock.return_value = []
url = 'svn+http://username:password@svn.example.com/'
svn = Subversion()
svn.export(script.scratch_path / 'test', url=url)