def test_succeeds_on_existing_draft(self): self.repo.releases._releases = [{'tag_name': 'test', 'draft': True}] publish_release.get_draft(self.repo, 'test')