def test_report(self): gh = GithubIssues(OAUTH_TOKEN) gh.login() summary = 'Unittest bug report' userdesc = 'Please remove this ticket' ticket_id, ticket_url = gh.report_bug(summary, userdesc) self.assertIsInstance(ticket_id, int) self.assertTrue(ticket_url.startswith( 'https://github.com/andresriancho/w3af/issues/')) # Remove the ticket I've just created gh = Github(OAUTH_TOKEN) repo = gh.get_user('andresriancho').get_repo('w3af') issue = repo.get_issue(ticket_id) issue.edit(state='closed')
def test_report(self): gh = GithubIssues(OAUTH_TOKEN) gh.login() summary = 'Unittest bug report' userdesc = 'Please remove this ticket' ticket_id, ticket_url = gh.report_bug(summary, userdesc) self.assertIsInstance(ticket_id, int) self.assertTrue( ticket_url.startswith( 'https://github.com/andresriancho/w3af/issues/')) # Remove the ticket I've just created gh = Github(OAUTH_TOKEN) repo = gh.get_user('andresriancho').get_repo('w3af') issue = repo.get_issue(ticket_id) issue.edit(state='closed')