mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Avoid ffmpeg subprocess for many component tests (#105354)
This commit is contained in:
parent
c96a588934
commit
a0bf170fb4
@ -91,3 +91,12 @@ def tts_mutagen_mock_fixture():
|
|||||||
from tests.components.tts.common import tts_mutagen_mock_fixture_helper
|
from tests.components.tts.common import tts_mutagen_mock_fixture_helper
|
||||||
|
|
||||||
yield from 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…
x
Reference in New Issue
Block a user