Open source video conferencing app powered by LiveKit. Built with Django and React.
🐛(backend) disable recording events in the default env file
lebaudantoine9a3e54e6ece9
diff --git a/env.d/development/common.dist b/env.d/development/common.distindex c48d903e..99e1499e 100644--- a/env.d/development/common.dist+++ b/env.d/development/common.dist@@ -63,7 +63,7 @@ ALLOW_UNREGISTERED_ROOMS=False# RecordingRECORDING_ENABLE=True-RECORDING_STORAGE_EVENT_ENABLE=True+RECORDING_STORAGE_EVENT_ENABLE=FalseRECORDING_STORAGE_EVENT_TOKEN=passwordSUMMARY_SERVICE_ENDPOINT=http://app-summary-dev:8000/api/v2/async-jobs/transcribe/SUMMARY_SERVICE_API_TOKEN=passworddiff --git a/src/backend/core/tests/services/test_livekit_events.py b/src/backend/core/tests/services/test_livekit_events.pyindex 16adb661..694f04e9 100644--- a/src/backend/core/tests/services/test_livekit_events.py+++ b/src/backend/core/tests/services/test_livekit_events.py@@ -72,11 +72,12 @@ def test_initialization()@mock.patch("core.utils.notify_participants")@mock.patch("core.services.room_management.RoomManagement.update_metadata")-def test_handle_egress_ended_success(- mock_update_metadata, mock_notify, mode, notification_type, service+def test_handle_egress_ended_success( # noqa: PLR0913 # pylint: disable=too-many-arguments, too-many-positional-arguments+ mock_update_metadata, mock_notify, mode, notification_type, service, settings):"""Should successfully stop recording and notifies all participant."""+ settings.RECORDING_STORAGE_EVENT_ENABLE = Falserecording = RecordingFactory(worker_id="worker-1", mode=mode, status="active")mock_data = mock.MagicMock()mock_data.egress_info.egress_id = recording.worker_id@@ -155,11 +156,12 @@ def test_handle_egress_updated_non_handled()@mock.patch("core.utils.notify_participants")@mock.patch("core.services.room_management.RoomManagement.update_metadata")-def test_handle_egress_ended_metadata_update_fails(- mock_update_metadata, mock_notify, mode, notification_type, service+def test_handle_egress_ended_metadata_update_fails( # noqa: PLR0913 # pylint: disable=too-many-arguments, too-many-positional-arguments+ mock_update_metadata, mock_notify, mode, notification_type, service, settings):"""Should successfully stop and save recording when metadata's update fails."""+ settings.RECORDING_STORAGE_EVENT_ENABLE = Falserecording = RecordingFactory(worker_id="worker-1", mode=mode, status="active")mock_data = mock.MagicMock()mock_data.egress_info.egress_id = recording.worker_id