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