Dulwich.io dulwich / 4e75bb1
test: Add pull test validating when remote_location is not passed Sijis Aviles 2 months ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
10011001 # Pull changes into the cloned repo
10021002 porcelain.pull(self.target_path, self.repo.path, outstream=outstream,
10031003 errstream=errstream)
1004
1005 # Check the target repo for pushed changes
1006 with Repo(self.target_path) as r:
1007 self.assertEqual(r[b'HEAD'].id, self.repo[b'HEAD'].id)
1008
1009 def test_no_remote_location(self):
1010 outstream = BytesIO()
1011 errstream = BytesIO()
1012
1013 # Pull changes into the cloned repo
1014 porcelain.pull(self.target_path, refspecs=b'refs/heads/master',
1015 outstream=outstream, errstream=errstream)
10041016
10051017 # Check the target repo for pushed changes
10061018 with Repo(self.target_path) as r: