本文整理汇总了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)