Show More
@@ -1914,6 +1914,7 b' class ChangesetComment(meta.Base, BaseDb' | |||||
1914 | return dict( |
|
1914 | return dict( | |
1915 | comment_id=self.comment_id, |
|
1915 | comment_id=self.comment_id, | |
1916 | username=self.author.username, |
|
1916 | username=self.author.username, | |
|
1917 | created_on=self.created_on.replace(microsecond=0), | |||
1917 | text=self.text, |
|
1918 | text=self.text, | |
1918 | ) |
|
1919 | ) | |
1919 |
|
1920 |
@@ -2517,6 +2517,7 b' class _BaseTestApi(object):' | |||||
2517 | 'comment_id': commentobj.comment_id, |
|
2517 | 'comment_id': commentobj.comment_id, | |
2518 | 'text': 'example changeset comment', |
|
2518 | 'text': 'example changeset comment', | |
2519 | 'username': 'test_admin', |
|
2519 | 'username': 'test_admin', | |
|
2520 | 'created_on': commentobj.created_on.replace(microsecond=0).isoformat(), | |||
2520 | } |
|
2521 | } | |
2521 | assert comment == expected |
|
2522 | assert comment == expected | |
2522 |
|
2523 | |||
@@ -2537,6 +2538,7 b' class _BaseTestApi(object):' | |||||
2537 | 'comment_id': commentobj.comment_id, |
|
2538 | 'comment_id': commentobj.comment_id, | |
2538 | 'text': 'example inline comment', |
|
2539 | 'text': 'example inline comment', | |
2539 | 'username': 'test_admin', |
|
2540 | 'username': 'test_admin', | |
|
2541 | 'created_on': commentobj.created_on.replace(microsecond=0).isoformat(), | |||
2540 | }] |
|
2542 | }] | |
2541 | }] |
|
2543 | }] | |
2542 | ] |
|
2544 | ] | |
@@ -2584,7 +2586,8 b' class _BaseTestApi(object):' | |||||
2584 | "org_ref_parts": ["branch", "stable", self.TEST_PR_SRC], |
|
2586 | "org_ref_parts": ["branch", "stable", self.TEST_PR_SRC], | |
2585 | "other_ref_parts": ["branch", "default", self.TEST_PR_DST], |
|
2587 | "other_ref_parts": ["branch", "default", self.TEST_PR_DST], | |
2586 | "comments": [{"username": base.TEST_USER_ADMIN_LOGIN, "text": "", |
|
2588 | "comments": [{"username": base.TEST_USER_ADMIN_LOGIN, "text": "", | |
2587 |
"comment_id": pullrequest.comments[0].comment_id |
|
2589 | "comment_id": pullrequest.comments[0].comment_id, | |
|
2590 | "created_on": "2000-01-01T00:00:00"}], | |||
2588 | "owner": base.TEST_USER_ADMIN_LOGIN, |
|
2591 | "owner": base.TEST_USER_ADMIN_LOGIN, | |
2589 | "statuses": [{"status": "under_review", "reviewer": base.TEST_USER_ADMIN_LOGIN, "modified_at": "2000-01-01T00:00:00"} for i in range(0, len(self.TEST_PR_REVISIONS))], |
|
2592 | "statuses": [{"status": "under_review", "reviewer": base.TEST_USER_ADMIN_LOGIN, "modified_at": "2000-01-01T00:00:00"} for i in range(0, len(self.TEST_PR_REVISIONS))], | |
2590 | "title": "get test", |
|
2593 | "title": "get test", |
General Comments 0
You need to be logged in to leave comments.
Login now