Skip to content

Commit

Permalink
담당자 추출오류 수정, 이슈 상태 추가 추출'
Browse files Browse the repository at this point in the history
  • Loading branch information
hurcy committed Jul 17, 2017
1 parent c3373cb commit e2f38d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions migrate/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ def dump_issue(self, each_issue):
issue['body'] = ''
issue['author'] = self.pull_author(each_issue.author)
if dict(each_issue).get('assigned_to', None):
issue['assignee'] = self.pull_assignee(each_issue.assigned_to)
issue['assignees'] = self.pull_assignee(each_issue.assigned_to)
else:
issue['assignee'] = []
issue['assignees'] = []
issue['state'] = 'CLOSED' if each_issue.status in ['완료', '해결', '보류'] else 'OPEN'
issue['createdAt'] = yona_timeformat(each_issue.created_on)
issue['updatedAt'] = yona_timeformat(each_issue.updated_on)
issue['attachments'] = self.pull_attachments(each_issue)
Expand Down
7 changes: 5 additions & 2 deletions test/test_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ def project(exporter):
)
return project

@skip
# @skip
def test_pull_attachments(project):
issue_id = '1510'
issue = project.redmine.issue.get(issue_id)
print dir(issue)#.is_private
print issue.status
# assert len (project.pull_attachments(issue))>0
print project.dump_issue(issue)

@skip
def test_pull_comments(project):
Expand All @@ -49,6 +52,6 @@ def test_pull_issue(exporter):
issue = exporter.redmine.issue.get(1056)
# kprint(issue.description.encode('utf-8'))

# @skip
@skip
def test_dump(exporter):
exporter.runner()

0 comments on commit e2f38d1

Please sign in to comment.