Skip to content

Commit 9793ce9

Browse files
committed
test(vcs/bazaar): init args skeleton + fixture
1 parent 505ee10 commit 9793ce9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/unit/test_vcs.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,24 @@ def test_subversion__get_remote_call_options(
763763
assert svn.get_remote_call_options() == expected_options
764764

765765

766+
class TestBazaarArgs(TestCase):
767+
def setUp(self) -> None:
768+
patcher = mock.patch("pip._internal.vcs.versioncontrol.call_subprocess")
769+
self.addCleanup(patcher.stop)
770+
self.call_subprocess_mock = patcher.start()
771+
772+
# Test Data.
773+
self.url = "bzr+http://username:[email protected]/"
774+
# use_interactive is set to False to test that remote call options are
775+
# properly added.
776+
self.svn = Bazaar()
777+
self.rev_options = RevOptions(Bazaar)
778+
self.dest = "/tmp/test"
779+
780+
def assert_call_args(self, args: CommandArgs) -> None:
781+
assert self.call_subprocess_mock.call_args[0][0] == args
782+
783+
766784
class TestSubversionArgs(TestCase):
767785
def setUp(self) -> None:
768786
patcher = mock.patch("pip._internal.vcs.versioncontrol.call_subprocess")

0 commit comments

Comments
 (0)