File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -1109,6 +1109,34 @@ def test_fetch_new_debug(self) -> None:
1109
1109
"--debug" ,
1110
1110
]
1111
1111
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
+
1112
1140
1113
1141
class TestSubversionArgs (TestCase ):
1114
1142
def setUp (self ) -> None :
You can’t perform that action at this time.
0 commit comments