Avoid ffmpeg subprocess for many component tests (#105354)
This commit is contained in:
parent
c96a588934
commit
a0bf170fb4
1 changed files with 9 additions and 0 deletions
|
@ -91,3 +91,12 @@ def tts_mutagen_mock_fixture():
|
|||
from tests.components.tts.common import tts_mutagen_mock_fixture_helper
|
||||
|
||||
yield from tts_mutagen_mock_fixture_helper()
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def prevent_ffmpeg_subprocess() -> Generator[None, None, None]:
|
||||
"""Prevent ffmpeg from creating a subprocess."""
|
||||
with patch(
|
||||
"homeassistant.components.ffmpeg.FFVersion.get_version", return_value="6.0"
|
||||
):
|
||||
yield
|
||||
|
|
Loading…
Add table
Reference in a new issue