Skip to content

Commit

Permalink
added non-AV track unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Lehr <tim.lehr@disneyanimation.com>
  • Loading branch information
timlehr committed Nov 11, 2023
1 parent ba5f509 commit 8c8864c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added tests/sample_data/avid_data_track_example.aaf
Binary file not shown.
10 changes: 10 additions & 0 deletions tests/test_aaf_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@
"marker-over-audio.aaf"
)

AVID_DATA_TRACK_EXAMPLE_PATH = os.path.join(
SAMPLE_DATA_DIR,
"avid_data_track_example.aaf"
)


try:
lib_path = os.environ.get("OTIO_AAF_PYTHON_LIB")
Expand Down Expand Up @@ -1547,6 +1552,11 @@ def get_expected_dict(timeline):
self.assertEqual(get_expected_dict(tl_unbaked), expected_unbaked)
self.assertEqual(get_expected_dict(tl_baked), expected_baked)

def test_non_av_track_kind(self):
timeline = otio.adapters.read_from_file(AVID_DATA_TRACK_EXAMPLE_PATH)
self.assertEqual([t.kind for t in timeline.tracks],
["Video", "AAF_DataEssenceTrack"]
)

class AAFWriterTests(unittest.TestCase):
def test_aaf_writer_gaps(self):
Expand Down

0 comments on commit 8c8864c

Please sign in to comment.