From 8e4b7774701b70fb37108e26153cd4709d0ae29c Mon Sep 17 00:00:00 2001 From: voluntas Date: Sun, 10 Nov 2024 21:30:48 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_authz.py | 6 ++---- tests/test_sora_disconnect.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/test_authz.py b/tests/test_authz.py index 8c1deaf..0119325 100644 --- a/tests/test_authz.py +++ b/tests/test_authz.py @@ -29,7 +29,6 @@ def test_sendonly_authz_video_true(setup): secret, algorithm="HS256", ) - metadata = {"access_token": access_token} sendonly = SoraClient( signaling_urls, @@ -37,7 +36,7 @@ def test_sendonly_authz_video_true(setup): channel_id, audio=True, video=False, - metadata=metadata, + metadata={"access_token": access_token}, ) sendonly.connect(fake_video=False, fake_audio=True) @@ -92,7 +91,6 @@ def test_sendonly_authz_video_codec_type(setup, video_codec_params): secret, algorithm="HS256", ) - metadata = {"access_token": access_token} sendonly = SoraClient( signaling_urls, @@ -100,7 +98,7 @@ def test_sendonly_authz_video_codec_type(setup, video_codec_params): channel_id, audio=False, video=True, - metadata=metadata, + metadata={"access_token": access_token}, ) sendonly.connect(fake_video=True) diff --git a/tests/test_sora_disconnect.py b/tests/test_sora_disconnect.py index e209c85..80faa18 100644 --- a/tests/test_sora_disconnect.py +++ b/tests/test_sora_disconnect.py @@ -29,7 +29,6 @@ def test_websocket_signaling_only_lifetime_expired(setup): secret, algorithm="HS256", ) - metadata = {"access_token": access_token} with SoraClient( signaling_urls, @@ -37,7 +36,7 @@ def test_websocket_signaling_only_lifetime_expired(setup): channel_id, audio=True, video=True, - metadata=metadata, + metadata={"access_token": access_token}, data_channel_signaling=False, ignore_disconnect_websocket=False, ) as conn: @@ -143,7 +142,6 @@ def test_websocket_datachannel_signaling_lifetime_expired(setup): secret, algorithm="HS256", ) - metadata = {"access_token": access_token} with SoraClient( signaling_urls, @@ -151,7 +149,7 @@ def test_websocket_datachannel_signaling_lifetime_expired(setup): channel_id, audio=True, video=True, - metadata=metadata, + metadata={"access_token": access_token}, data_channel_signaling=True, ignore_disconnect_websocket=False, ) as conn: