def setUp(self): self.github_service = FakeGitHubService(GITHUB_USERNAME, GITHUB_REPO, GITHUB_TOKEN) self.github_user_service = github_issue_converter.UserService( self.github_service) self.github_issue_service = github_issue_converter.IssueService( self.github_service, comment_delay=0) self.issue_exporter = issues.IssueExporter(self.github_issue_service, self.github_user_service, NO_ISSUE_DATA, GITHUB_REPO, USER_MAP) self.issue_exporter.Init()
def setUp(self): self.github_service = FakeGitHubService(GITHUB_USERNAME, GITHUB_REPO, GITHUB_TOKEN) self.github_user_service = github_issue_converter.UserService( self.github_service) self.github_issue_service = github_issue_converter.IssueService( self.github_service, comment_delay=0) self.issue_exporter = issues.IssueExporter(self.github_issue_service, self.github_user_service, NO_ISSUE_DATA, GITHUB_REPO, USER_MAP) self.issue_exporter.Init() self.TEST_ISSUE_DATA = [{ "id": "1", "number": "1", "title": "Title1", "state": "open", "comments": { "items": [COMMENT_ONE, COMMENT_TWO, COMMENT_THREE], }, "labels": ["Type-Issue", "Priority-High"], "owner": { "kind": "projecthosting#issuePerson", "name": "User1" }, }, { "id": "2", "number": "2", "title": "Title2", "state": "closed", "owner": { "kind": "projecthosting#issuePerson", "name": "User2" }, "labels": [], "comments": { "items": [COMMENT_ONE], }, }, { "id": "3", "number": "3", "title": "Title3", "state": "closed", "comments": { "items": [COMMENT_ONE, COMMENT_TWO], }, "labels": ["Type-Defect"], "owner": { "kind": "projecthosting#issuePerson", "name": "User3" } }]
def setUp(self): self.github_service = FakeGitHubService(GITHUB_USERNAME, GITHUB_REPO, GITHUB_TOKEN) self.github_user_service = github_issue_converter.UserService( self.github_service)