Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
propagate kwargs in do_test_fetch
  • Loading branch information
sroet committed Sep 10, 2021
commit c55a8e3e227fc04d10a28f8e8f61809148b19223
4 changes: 2 additions & 2 deletions test/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _commit_random_file(self, repo):
index.commit("Committing %s" % new_file)
return new_file

def _do_test_fetch(self, remote, rw_repo, remote_repo):
def _do_test_fetch(self, remote, rw_repo, remote_repo, **kwargs):
# specialized fetch testing to de-clutter the main test
self._do_test_fetch_info(rw_repo)

Expand All @@ -183,7 +183,7 @@ def get_info(res, remote, name):
# put remote head to master as it is guaranteed to exist
remote_repo.head.reference = remote_repo.heads.master

res = fetch_and_test(remote)
res = fetch_and_test(remote, **kwargs)
# all up to date
for info in res:
self.assertTrue(info.flags & info.HEAD_UPTODATE)
Expand Down