1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
from pathlib import Path
import av
from .common import fate_suite
def test_path_input() -> None:
path = Path(fate_suite("h264/interlaced_crop.mp4"))
assert isinstance(path, Path)
container = av.open(path)
assert type(container) is av.container.InputContainer
def test_str_input() -> None:
path = fate_suite("h264/interlaced_crop.mp4")
assert type(path) is str
container = av.open(path)
assert type(container) is av.container.InputContainer
def test_path_output() -> None:
path = Path(fate_suite("h264/interlaced_crop.mp4"))
assert isinstance(path, Path)
container = av.open(path, "w")
assert type(container) is av.container.OutputContainer
def test_str_output() -> None:
path = fate_suite("h264/interlaced_crop.mp4")
assert type(path) is str
container = av.open(path, "w")
assert type(container) is av.container.OutputContainer
|