mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-3951 - updated tests
This commit is contained in:
parent
9b2a01bc99
commit
94ceba790e
1 changed files with 20 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ class TestValidateSequenceFrames(BaseTest):
|
|||
@pytest.mark.parametrize("files",
|
||||
["Main_beauty.v001.1001.exr",
|
||||
"Main_beauty_v001.1001.exr",
|
||||
"Main_beauty.1001.1001.exr"])
|
||||
"Main_beauty.1001.1001.exr",
|
||||
"Main_beauty_v001_1001.exr"])
|
||||
def test_validate_sequence_frames_single_frame_name(self, instance,
|
||||
plugin,
|
||||
files):
|
||||
|
|
@ -97,6 +98,24 @@ class TestValidateSequenceFrames(BaseTest):
|
|||
assert ("Invalid frame range: (1, 1) - expected: (1001, 1001)" in
|
||||
str(excinfo.value))
|
||||
|
||||
@pytest.mark.parametrize("files",
|
||||
["Main_beauty.1001.v001.ass.gz"])
|
||||
def test_validate_sequence_frames_single_frame_possible_wrong_name(self,
|
||||
instance, plugin, files):
|
||||
# currently pattern fails on extensions with dots
|
||||
representations = [
|
||||
{
|
||||
"ext": "exr",
|
||||
"files": files,
|
||||
}
|
||||
]
|
||||
instance.data["representations"] = representations
|
||||
|
||||
with pytest.raises(AssertionError) as excinfo:
|
||||
plugin.process(instance)
|
||||
assert ("Must not have remainder" in
|
||||
str(excinfo.value))
|
||||
|
||||
def test_validate_sequence_frames_multi_frame(self, instance, plugin):
|
||||
representations = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue