mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Restore measure of test coverage
This commit is contained in:
@@ -409,9 +409,11 @@ class Repository(Framework.TestCase):
|
||||
self.assertEqual(commit, None)
|
||||
|
||||
def testMergeWithConflict(self):
|
||||
raised = False
|
||||
try:
|
||||
commit = self.repo.merge("branchForBase", "branchForHead")
|
||||
self.fail("Should have raised")
|
||||
except github.GithubException, exception:
|
||||
raised = True
|
||||
self.assertEqual(exception.status, 409)
|
||||
self.assertEqual(exception.data, {"message": "Merge conflict"})
|
||||
self.assertTrue(raised)
|
||||
|
||||
Reference in New Issue
Block a user