Skip output (ffmpeg) tests if ffmpeg missing

Prevents failures from showing on CI, until I add ffmpeg downloader
pull/357/head
nyanpasu64 2018-12-23 13:18:56 -08:00
rodzic ccfe30ad54
commit 222426d0df
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
import shutil
from fractions import Fraction
from pathlib import Path
from typing import TYPE_CHECKING
@ -14,6 +15,11 @@ from tests.test_renderer import WIDTH, HEIGHT, ALL_ZEROS
if TYPE_CHECKING:
import pytest_mock
if not shutil.which('ffmpeg'):
pytestmark = pytest.mark.skip('Missing ffmpeg, skipping output tests')
CFG = default_config(render=RendererConfig(WIDTH, HEIGHT))
NULL_OUTPUT = FFmpegOutputConfig(None, '-f null')