本文整理匯總了Python中oyProjectManager.models.project.Project.shot_number_padding方法的典型用法代碼示例。如果您正苦於以下問題:Python Project.shot_number_padding方法的具體用法?Python Project.shot_number_padding怎麽用?Python Project.shot_number_padding使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類oyProjectManager.models.project.Project
的用法示例。
在下文中一共展示了Project.shot_number_padding方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_add_shots_is_working_properly_for_projects_with_no_shot_number_prefix
# 需要導入模塊: from oyProjectManager.models.project import Project [as 別名]
# 或者: from oyProjectManager.models.project.Project import shot_number_padding [as 別名]
def test_add_shots_is_working_properly_for_projects_with_no_shot_number_prefix(self):
"""testing if the add_shots method working properly for projects with
no or empty shot_number_prefix
"""
proj1 = Project("proj1", "proj1")
proj1.shot_number_prefix = ""
proj1.shot_number_padding = 0
proj1.save()
seq1 = Sequence(proj1, "seq91")
seq1.save()
shot_code = "VFX91-3"
seq1.add_shots(shot_code)
# should complete without any error
shot = seq1.shots[0]
self.assertEqual(shot.code, shot_code)