mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Fix go2rtc test RuntimeWarnings (#128411)
This commit is contained in:
parent
df52f3f0e1
commit
2c00cd489e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user