clean and simplify tests

This commit is contained in:
henryruhs
2026-05-29 15:44:07 +02:00
parent 2a8672b54d
commit 871559cb6a
3 changed files with 10 additions and 15 deletions
+1 -8
View File
@@ -119,6 +119,7 @@ def test_stream_video(test_client : TestClient, video_codec : VideoCodec) -> Non
if video_codec == 'av1':
rtc.add_video_track(peer_connection, 'sendrecv', video_codec, 35)
if video_codec == 'vp8':
rtc.add_video_track(peer_connection, 'sendrecv', video_codec, 96)
@@ -136,14 +137,6 @@ def test_stream_video(test_client : TestClient, video_codec : VideoCodec) -> Non
assert stream_response.status_code == 201
assert 'm=video' in stream_response.text
session_id = session_manager.find_session_id(access_token)
for peer in rtc_store.get_peers(session_id):
bitrate = peer.get('bitrate')
assert bitrate.value == 0
rtc.handle_remb(0, 6000000, ctypes.addressof(bitrate))
assert bitrate.value == 6000
def test_delete_stream_video(test_client : TestClient) -> None:
create_session_response = test_client.post('/session', json =