當前位置: 首頁>>代碼示例>>Python>>正文


Python ChangeSet.testing_done方法代碼示例

本文整理匯總了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
開發者ID:CharanKamal-CLI,項目名稱:reviewboard,代碼行數:13,代碼來源:scmtool.py

示例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)
開發者ID:davidt,項目名稱:reviewboard,代碼行數:25,代碼來源:test_review_request_draft.py


注:本文中的reviewboard.scmtools.core.ChangeSet.testing_done方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。