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

@@ -23,6 +23,7 @@ def rest_client() -> Generator[AsyncMock]:
client = mock_client.return_value
client.streams = streams = Mock(spec_set=_StreamClient)
streams.list.return_value = {}
client.validate_server_version = AsyncMock()
client.webrtc = Mock(spec_set=_WebRTCClient)
yield client