Skip to content

Commit c6d9646

Browse files
committed
Fixed linting
Signed-off-by: Eric Reinecke <ereinecke@netflix.com>
1 parent e08d0cd commit c6d9646

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

tests/test_stream_mapping.py

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -345,25 +345,25 @@ def test_create_default(self):
345345
self.assertEqual(mapper.schema_version(), 1)
346346

347347
def test_create_with_map(self):
348-
stream_map = {
349-
StreamInfo.Identifier.monocular: StreamInfo.Identifier.left_eye
350-
}
348+
stream_map = {StreamInfo.Identifier.monocular: StreamInfo.Identifier.left_eye}
351349
mapper = otio.schema.StreamMapper(stream_map=stream_map)
352350
self.assertEqual(mapper.stream_map, stream_map)
353351

354352
def test_set_map(self):
355353
mapper = otio.schema.StreamMapper()
356354
stream_map = {
357-
StreamInfo.Identifier.stereo_left: StreamInfo.Identifier.surround_left_front,
358-
StreamInfo.Identifier.stereo_right: StreamInfo.Identifier.surround_right_front,
355+
StreamInfo.Identifier.stereo_left: (
356+
StreamInfo.Identifier.surround_left_front
357+
),
358+
StreamInfo.Identifier.stereo_right: (
359+
StreamInfo.Identifier.surround_right_front
360+
),
359361
}
360362
mapper.stream_map = stream_map
361363
self.assertEqual(mapper.stream_map, stream_map)
362364

363365
def test_round_trip_serialization(self):
364-
stream_map = {
365-
StreamInfo.Identifier.monocular: StreamInfo.Identifier.left_eye
366-
}
366+
stream_map = {StreamInfo.Identifier.monocular: StreamInfo.Identifier.left_eye}
367367
mapper = otio.schema.StreamMapper(
368368
name="remap_to_mono",
369369
stream_map=stream_map,
@@ -387,13 +387,13 @@ def test_left_eye_to_monocular_use_case(self):
387387
StreamInfo.Identifier.monocular: StreamInfo.Identifier.left_eye
388388
}
389389
)
390-
]
390+
],
391391
)
392392
mapper = clip.effects[0]
393393
self.assertIsInstance(mapper, otio.schema.StreamMapper)
394394
self.assertEqual(
395395
mapper.stream_map[StreamInfo.Identifier.monocular],
396-
StreamInfo.Identifier.left_eye
396+
StreamInfo.Identifier.left_eye,
397397
)
398398

399399
def test_use_as_clip_effect(self):
@@ -407,11 +407,15 @@ def test_use_as_clip_effect(self):
407407
otio.schema.StreamMapper(
408408
name="a very bad stereo downmix",
409409
stream_map={
410-
StreamInfo.Identifier.stereo_left: StreamInfo.Identifier.surround_left_front,
411-
StreamInfo.Identifier.stereo_right: StreamInfo.Identifier.surround_right_front,
412-
}
410+
StreamInfo.Identifier.stereo_left: (
411+
StreamInfo.Identifier.surround_left_front
412+
),
413+
StreamInfo.Identifier.stereo_right: (
414+
StreamInfo.Identifier.surround_right_front
415+
),
416+
},
413417
)
414-
]
418+
],
415419
)
416420
json_str = clip.to_json_string()
417421
restored = otio.adapters.read_from_string(json_str, "otio_json")
@@ -422,7 +426,7 @@ def test_use_as_clip_effect(self):
422426
self.assertEqual(mapper.name, "a very bad stereo downmix")
423427
self.assertEqual(
424428
mapper.stream_map[StreamInfo.Identifier.stereo_left],
425-
StreamInfo.Identifier.surround_left_front
429+
StreamInfo.Identifier.surround_left_front,
426430
)
427431

428432

0 commit comments

Comments
 (0)