Skip to content

Commit 4a1fe0e

Browse files
author
Alexis
committed
api: abstract_paths_from_template - handle properly sequencekey with special format value - add tests
1 parent 6d07221 commit 4a1fe0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/core_tests/test_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,15 @@ def test_specify_name(self):
365365
)
366366
self.assertEqual(set(expected), set(result))
367367

368+
def test_sequence_format(self):
369+
expected = [
370+
os.path.join(self.shot_a_path, "%V", "filename.$F4.exr"),
371+
os.path.join(self.shot_b_path, "%V", "filename.$F4.exr"),
372+
]
373+
result = self.tk.abstract_paths_from_template(
374+
self.template, {"name": "filename", "SEQ": "FORMAT: $F"}
375+
)
376+
self.assertEqual(set(expected), set(result))
368377

369378
class TestPathsFromTemplateGlob(TankTestBase):
370379
"""Tests for Tank.paths_from_template method which check the string sent to glob.glob."""

0 commit comments

Comments
 (0)