Validate go2rtc server version (#129810)

This commit is contained in:
Erik Montnemery
2024-11-05 11:09:10 +01:00
committed by GitHub
parent af58b0c3b7
commit 8889464e04
5 changed files with 98 additions and 11 deletions

View File

@@ -47,6 +47,7 @@ def mock_tempfile() -> Generator[Mock]:
)
async def test_server_run_success(
mock_create_subprocess: AsyncMock,
rest_client: AsyncMock,
server_stdout: list[str],
server: Server,
caplog: pytest.LogCaptureFixture,
@@ -95,7 +96,7 @@ webrtc:
@pytest.mark.usefixtures("mock_tempfile")
async def test_server_timeout_on_stop(
mock_create_subprocess: MagicMock, server: Server
mock_create_subprocess: MagicMock, rest_client: AsyncMock, server: Server
) -> None:
"""Test server run where the process takes too long to terminate."""
# Start server thread