Skip to content

Commit eebf55b

Browse files
committed
Updated tests to support progress usage
1 parent 6c51057 commit eebf55b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/helpers.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ def action_fork(self, cassette_name, local_namespace, remote_namespace, reposito
269269
('git remote add upstream {}'.format(remote_slug), b'', b'', 0),
270270
('git remote add all {}'.format(local_slug), b'', b'', 0),
271271
('git remote add {} {}'.format(self.service.name, local_slug), b'', b'', 0),
272-
('git pull -v {} master'.format(self.service.name), b'', '\n'.join([
272+
('git version', b'git version 2.8.0', b'', 0),
273+
('git pull -v --progress {} master'.format(self.service.name), b'', '\n'.join([
273274
'POST git-upload-pack (140 bytes)',
274275
'remote: Counting objects: 8318, done.',
275276
'remote: Compressing objects: 100% (3/3), done.',
@@ -295,7 +296,8 @@ def action_fork__no_clone(self, cassette_name, local_namespace, remote_namespace
295296
('git remote add upstream {}'.format(remote_slug), b'', b'', 0),
296297
('git remote add all {}'.format(local_slug), b'', b'', 0),
297298
('git remote add {} {}'.format(self.service.name, local_slug), b'', b'', 0),
298-
('git pull -v {} master'.format(self.service.name), b'', '\n'.join([
299+
('git version', b'git version 2.8.0', b'', 0),
300+
('git pull -v --progress {} master'.format(self.service.name), b'', '\n'.join([
299301
'POST git-upload-pack (140 bytes)',
300302
'remote: Counting objects: 8318, done.',
301303
'remote: Compressing objects: 100% (3/3), done.',
@@ -318,7 +320,8 @@ def action_clone(self, cassette_name, namespace, repository):
318320
self.set_mock_popen_commands([
319321
('git remote add all {}'.format(local_slug), b'', b'', 0),
320322
('git remote add {} {}'.format(self.service.name, local_slug), b'', b'', 0),
321-
('git pull -v {} master'.format(self.service.name), b'', '\n'.join([
323+
('git version', b'git version 2.8.0', b'', 0),
324+
('git pull -v --progress {} master'.format(self.service.name), b'', '\n'.join([
322325
'POST git-upload-pack (140 bytes)',
323326
'remote: Counting objects: 8318, done.',
324327
'remote: Compressing objects: 100% (3/3), done.',

0 commit comments

Comments
 (0)