From 9c854365734ab8251fc8db0485933819f65a24e1 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Mon, 20 May 2019 08:28:24 -0400 Subject: [PATCH] Fix tests --- tests/functional/test_install_vcs_svn.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/functional/test_install_vcs_svn.py b/tests/functional/test_install_vcs_svn.py index 6aea2737d..5e64bab07 100644 --- a/tests/functional/test_install_vcs_svn.py +++ b/tests/functional/test_install_vcs_svn.py @@ -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)