Skip to content

Commit ff1fa9a

Browse files
committed
test(vcs/mercurial): init update args
1 parent c185a8e commit ff1fa9a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/unit/test_vcs.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,34 @@ def test_fetch_new_debug(self) -> None:
11091109
"--debug",
11101110
]
11111111

1112+
def test_update(self) -> None:
1113+
self.svn.update(self.dest, hide_url(self.url), self.rev_options, verbosity=1)
1114+
1115+
assert self.call_subprocess_mock.call_args_list[0][0][0] == [
1116+
"hg",
1117+
"pull",
1118+
]
1119+
1120+
assert self.call_subprocess_mock.call_args_list[1][0][0] == [
1121+
"hg",
1122+
"update",
1123+
]
1124+
1125+
def test_update_quiet(self) -> None:
1126+
self.svn.update(self.dest, hide_url(self.url), self.rev_options, verbosity=0)
1127+
1128+
assert self.call_subprocess_mock.call_args_list[0][0][0] == [
1129+
"hg",
1130+
"pull",
1131+
"-q",
1132+
]
1133+
1134+
assert self.call_subprocess_mock.call_args_list[1][0][0] == [
1135+
"hg",
1136+
"update",
1137+
"-q",
1138+
]
1139+
11121140

11131141
class TestSubversionArgs(TestCase):
11141142
def setUp(self) -> None:

0 commit comments

Comments
 (0)