Skip to content

Commit

Permalink
api: abstract_paths_from_template - handle properly sequencekey with …
Browse files Browse the repository at this point in the history
…special format value - add tests
  • Loading branch information
Alexis committed Aug 20, 2020
1 parent 6d07221 commit 4a1fe0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/core_tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,15 @@ def test_specify_name(self):
)
self.assertEqual(set(expected), set(result))

def test_sequence_format(self):
expected = [
os.path.join(self.shot_a_path, "%V", "filename.$F4.exr"),
os.path.join(self.shot_b_path, "%V", "filename.$F4.exr"),
]
result = self.tk.abstract_paths_from_template(
self.template, {"name": "filename", "SEQ": "FORMAT: $F"}
)
self.assertEqual(set(expected), set(result))

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

0 comments on commit 4a1fe0e

Please sign in to comment.