Fix go2rtc test RuntimeWarnings (#128411)

This commit is contained in:
Marc Mueller 2024-10-15 01:11:01 +02:00 committed by GitHub
parent df52f3f0e1
commit 2c00cd489e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,6 +36,8 @@ def mock_process() -> Generator[MagicMock]:
with patch(
"homeassistant.components.go2rtc.server.asyncio.create_subprocess_exec"
) as mock_popen:
mock_popen.return_value.terminate = MagicMock()
mock_popen.return_value.kill = MagicMock()
mock_popen.return_value.returncode = None
yield mock_popen