Skip to content

Commit da84fc3

Browse files
committed
Split hevc test
1 parent e3cf21b commit da84fc3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

auto_editor/cmds/test.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -462,16 +462,17 @@ def test_prores(self):
462462
out2 = self.main([out], ["-c:v", "prores"], "prores2.mkv")
463463
assert fileinfo(out2).videos[0].pix_fmt == "yuv422p10le"
464464

465-
def test_hevc(self):
465+
def test_decode_hevc(self):
466+
out2 = self.main(["resources/testsrc-hevc.mp4"], ["-c:v", "h264"]) + ".mp4"
467+
assert fileinfo(out2).videos[0].pix_fmt == "yuv420p"
468+
469+
def test_encode_hevc(self):
466470
if os.environ.get("GITHUB_ACTIONS") == "true":
467471
raise SkipTest()
468472

469473
out = self.main(["resources/testsrc.mp4"], ["-c:v", "hevc"], "out.mkv")
470474
assert fileinfo(out).videos[0].pix_fmt == "yuv420p"
471475

472-
out2 = self.main(["resources/testsrc-hevc.mp4"], []) + ".mp4"
473-
assert fileinfo(out2).videos[0].pix_fmt == "yuv420p"
474-
475476
# Issue 280
476477
def test_SAR(self):
477478
out = self.main(["resources/SAR-2by3.mp4"], [], "2by3_out.mp4")

0 commit comments

Comments
 (0)