From dd22884011242ef31c34720622a06fb69d96f3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Ro=C5=BCnawski?= Date: Tue, 6 Feb 2024 15:38:58 +0100 Subject: [PATCH] Lint --- poetry_scripts.py | 3 ++- tests/test_notifier.py | 3 ++- tests/test_room_api.py | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/poetry_scripts.py b/poetry_scripts.py index 2e8ed72..3cafd4e 100644 --- a/poetry_scripts.py +++ b/poetry_scripts.py @@ -67,7 +67,8 @@ def generate_docs(): def update_client(): check_exit_code( "openapi-python-client update\ - --url https://raw.githubusercontent.com/jellyfish-dev/jellyfish/RTC-435-rest-track-metadata/openapi.yaml \ + --url https://raw.githubusercontent.com/jellyfish-dev/" + "jellyfish/main/openapi.yaml \ --config openapi-python-client-config.yaml \ --custom-template-path=openapi_templates" ) diff --git a/tests/test_notifier.py b/tests/test_notifier.py index cd51752..1ac62de 100644 --- a/tests/test_notifier.py +++ b/tests/test_notifier.py @@ -17,7 +17,7 @@ ServerMessageRoomCreated, ServerMessageRoomDeleted, ServerMessageTrackAdded, - ServerMessageTrackRemoved + ServerMessageTrackRemoved, ) from tests.support.asyncio_utils import assert_events, assert_metrics, cancel from tests.support.peer_socket import PeerSocket @@ -33,6 +33,7 @@ CODEC_H264 = "h264" FILE_OPTIONS = ComponentOptionsFile(file_path="video.h264") + @pytest.fixture(scope="session", autouse=True) def start_server(): flask_process = Process(target=run_server, args=(queue,)) diff --git a/tests/test_room_api.py b/tests/test_room_api.py index a958f6e..21ff8df 100644 --- a/tests/test_room_api.py +++ b/tests/test_room_api.py @@ -63,7 +63,9 @@ ) FILE_OPTIONS = ComponentOptionsFile(file_path="video.h264") -FILE_PROPERTIES = ComponentPropertiesFile(file_path=FILE_OPTIONS.file_path, framerate=30) +FILE_PROPERTIES = ComponentPropertiesFile( + file_path=FILE_OPTIONS.file_path, framerate=30 +) class TestAuthentication: @@ -301,7 +303,7 @@ def _assert_peer_created(self, room_api, webrtc_peer, room_id): type="webrtc", status=PeerStatus("disconnected"), tracks=[], - metadata=None + metadata=None, ) room = room_api.get_room(room_id)