Skip to content

Commit a1300b3

Browse files
committed
Remove redundant uses of "otio_json" adapter name.
Signed-off-by: Joshua Minor <[email protected]>
1 parent 54bfc0d commit a1300b3

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tests/test_console.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def test_basic(self):
171171
'otioconvert',
172172
'-i', SCREENING_EXAMPLE_PATH,
173173
'-o', temp_file,
174-
'-O', 'otio_json',
175174
'--tracks', '0'
176175
]
177176
self.run_test()
@@ -189,7 +188,6 @@ def test_begin_end(self):
189188
'otioconvert',
190189
'-i', SCREENING_EXAMPLE_PATH,
191190
'-o', temp_file,
192-
'-O', 'otio_json',
193191
"--begin", "foobar"
194192
]
195193
with self.assertRaises(SystemExit):
@@ -200,7 +198,6 @@ def test_begin_end(self):
200198
'otioconvert',
201199
'-i', SCREENING_EXAMPLE_PATH,
202200
'-o', temp_file,
203-
'-O', 'otio_json',
204201
"--end", "foobar"
205202
]
206203
with self.assertRaises(SystemExit):
@@ -211,7 +208,6 @@ def test_begin_end(self):
211208
'otioconvert',
212209
'-i', SCREENING_EXAMPLE_PATH,
213210
'-o', temp_file,
214-
'-O', 'otio_json',
215211
"--begin", "0,24",
216212
"--end", "0,24",
217213
]
@@ -222,7 +218,6 @@ def test_begin_end(self):
222218
'otioconvert',
223219
'-i', SCREENING_EXAMPLE_PATH,
224220
'-o', temp_file,
225-
'-O', 'otio_json',
226221
"--begin", "0",
227222
"--end", "0,24",
228223
]
@@ -233,14 +228,13 @@ def test_begin_end(self):
233228
'otioconvert',
234229
'-i', SCREENING_EXAMPLE_PATH,
235230
'-o', temp_file,
236-
'-O', 'otio_json',
237231
"--begin", "0,24",
238232
"--end", "0",
239233
]
240234
with self.assertRaises(SystemExit):
241235
self.run_test()
242236

243-
result = otio.adapters.read_from_file(temp_file, "otio_json")
237+
result = otio.adapters.read_from_file(temp_file)
244238
self.assertEqual(len(result.tracks[0]), 0)
245239
self.assertEqual(result.name, "Example_Screening.01")
246240

@@ -269,7 +263,6 @@ def test_output_argument_error(self):
269263
'otioconvert',
270264
'-i', SCREENING_EXAMPLE_PATH,
271265
'-o', temp_file,
272-
'-O', 'otio_json',
273266
"-A", "foobar",
274267
]
275268

@@ -287,7 +280,6 @@ def test_media_linker_argument_error(self):
287280
'otioconvert',
288281
'-i', SCREENING_EXAMPLE_PATH,
289282
'-o', temp_file,
290-
'-O', 'otio_json',
291283
"-m", "fake_linker",
292284
"-M", "somestring=foobar",
293285
"-M", "foobar",
@@ -645,7 +637,7 @@ def test_remove_transition(self):
645637
self.assertNotIn('"OTIO_SCHEMA": "Transition.', out)
646638

647639
# make sure the timeline has the same clips in it
648-
in_timeline = otio.adapters.read_from_file(TRANSITION_PATH, "otio_json")
640+
in_timeline = otio.adapters.read_from_file(TRANSITION_PATH)
649641
out_timeline = otio.adapters.read_from_string(out, "otio_json")
650642
self.assertEqual(len(in_timeline.find_clips()), len(out_timeline.find_clips()))
651643

@@ -660,7 +652,7 @@ def test_remove_effects(self):
660652
self.assertNotIn('"OTIO_SCHEMA": "Effect.', out)
661653

662654
# make sure the timeline has the same clips in it
663-
in_timeline = otio.adapters.read_from_file(EFFECTS_PATH, "otio_json")
655+
in_timeline = otio.adapters.read_from_file(EFFECTS_PATH)
664656
out_timeline = otio.adapters.read_from_string(out, "otio_json")
665657
self.assertEqual(len(in_timeline.find_clips()), len(out_timeline.find_clips()))
666658

0 commit comments

Comments
 (0)