本文整理匯總了Python中reviewboard.scmtools.core.ChangeSet.testing_done方法的典型用法代碼示例。如果您正苦於以下問題:Python ChangeSet.testing_done方法的具體用法?Python ChangeSet.testing_done怎麽用?Python ChangeSet.testing_done使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類reviewboard.scmtools.core.ChangeSet
的用法示例。
在下文中一共展示了ChangeSet.testing_done方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: get_changeset
# 需要導入模塊: from reviewboard.scmtools.core import ChangeSet [as 別名]
# 或者: from reviewboard.scmtools.core.ChangeSet import testing_done [as 別名]
def get_changeset(self, changesetid, allow_empty=False):
changeset = ChangeSet()
changeset.changenum = changesetid
changeset.description = 'Hello world!'
changeset.pending = True
if not allow_empty:
changeset.files = ['README.md']
changeset.summary = 'Added a README markdown to help explain what the'\
' repository is used for. Hopefully, this takes off.'
changeset.testing_done = "None was performed"
return changeset
示例2: test_update_from_pending_change_with_rich_text_reset
# 需要導入模塊: from reviewboard.scmtools.core import ChangeSet [as 別名]
# 或者: from reviewboard.scmtools.core.ChangeSet import testing_done [as 別名]
def test_update_from_pending_change_with_rich_text_reset(self):
"""Testing ReviewRequestDraft.update_from_pending_change resets rich
text fields
"""
review_request = ReviewRequest.objects.create(self.user,
self.repository)
draft = ReviewRequestDraft.create(review_request)
draft.description_rich_text = True
draft.testing_done_rich_text = True
changeset = ChangeSet()
changeset.changenum = 4
changeset.summary = '* This is a summary'
changeset.description = '* This is a description.'
changeset.testing_done = '* This is some testing.'
draft.update_from_pending_change(4, changeset)
self.assertEqual(draft.summary, '* This is a summary')
self.assertEqual(draft.description, '* This is a description.')
self.assertFalse(draft.description_rich_text)
self.assertEqual(draft.testing_done, '* This is some testing.')
self.assertFalse(draft.testing_done_rich_text)