def test_is_pr_potential_squash(self): """ Test our PR extractor with non-squashed PR message """ message = 'Some title addresses bug (#345)' self.assertTrue(is_pr(message))
def test_is_pr_no_number(self): """ Test our PR extractor with non-PR message """ message = 'Merge pull request from some/branch\n\nMy Title' self.assertFalse(is_pr(message))
def test_is_pr_squash(self): """ Test our PR extractor with squash-and-merge PR """ message = 'My Title (#1234)\n\nMy description' self.assertTrue(is_pr(message))
def test_is_pr_not_pr(self): """ Test our PR extractor with non-PR message """ message = 'I made some changes!' self.assertFalse(is_pr(message))
def test_is_pr_merge(self): """ Test our PR extractor with merge PRa """ message = 'Merge pull request #1234 from some/branch\n\nMy Title' self.assertTrue(is_pr(message))