Skip to content

Commit

Permalink
Add test for PathLike input and output.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhou committed Aug 21, 2022
1 parent 23d02ba commit 8db9b74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ffmpeg/tests/test_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ def test_fluent_complex_filter():
).output('dummy2.mp4')


@pytest.mark.skipif(sys.version_info < (3, 6), reason='requires python3.6 or higher')
def test_pathlike_input_output():
from pathlib import Path
base = ffmpeg.input(Path("dummy.mp4"))
base.output(filename=Path("dummy2.mp4"))
base.output(Path("dummy3.mp4"))


def test_node_repr():
in_file = ffmpeg.input('dummy.mp4')
trim1 = ffmpeg.trim(in_file, start_frame=10, end_frame=20)
Expand Down

0 comments on commit 8db9b74

Please sign in to comment.