mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Fix go2rtc test RuntimeWarnings (#128411)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user