Skip to content

Commit

Permalink
Fix some pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
redroy committed Jul 28, 2022
1 parent 59b60b7 commit 7ac1bab
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
"simple_data_track_marker_test.aaf"
)


def safe_str(maybe_str):
"""To help with testing between python 2 and 3, this function attempts to
decode a string, and if it cannot decode it just returns the string.
Expand Down Expand Up @@ -1957,9 +1958,10 @@ def test_simplify_stack_track_clip(self):
self.assertNotEqual(type(i), otio.schema.Clip)

def test_aaf_data_track_markers(self):
expected_markers = [('Frame 1', 0.0, 1.0, 24.0, 'GREEN'),
('Frame 23', 22.0, 1.0, 24.0, 'RED'),
('Frame 56', 55.0, 1.0, 24.0, 'GREEN'),
"""Test that we can load a Data track and read the markers on it."""
expected_markers = [('Frame 1', 0.0, 1.0, 24.0, 'GREEN'),
('Frame 23', 22.0, 1.0, 24.0, 'RED'),
('Frame 56', 55.0, 1.0, 24.0, 'GREEN'),
('Frame 100', 99.0, 1.0, 24.0, 'RED')]
aaf_path = DATA_TRACK_MARKERS_PATH
timeline = otio.adapters.read_from_file(aaf_path, simplify=True)
Expand Down

0 comments on commit 7ac1bab

Please sign in to comment.