Skip to content

Commit

Permalink
test: Add pull test validating when remote_location is not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
sijis committed Feb 1, 2020
1 parent f72dcc1 commit 4e75bb1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dulwich/tests/test_porcelain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,18 @@ def test_no_refspec(self):
with Repo(self.target_path) as r:
self.assertEqual(r[b'HEAD'].id, self.repo[b'HEAD'].id)

def test_no_remote_location(self):
outstream = BytesIO()
errstream = BytesIO()

# Pull changes into the cloned repo
porcelain.pull(self.target_path, refspecs=b'refs/heads/master',
outstream=outstream, errstream=errstream)

# Check the target repo for pushed changes
with Repo(self.target_path) as r:
self.assertEqual(r[b'HEAD'].id, self.repo[b'HEAD'].id)


class StatusTests(PorcelainTestCase):

Expand Down

0 comments on commit 4e75bb1

Please sign in to comment.