diff --git a/zerver/views/video_calls.py b/zerver/views/video_calls.py index 91c762ad0a..493bc6fa09 100644 --- a/zerver/views/video_calls.py +++ b/zerver/views/video_calls.py @@ -52,9 +52,6 @@ def get_zoom_session(user: UserProfile) -> OAuth2Session: client_id = settings.VIDEO_ZOOM_CLIENT_ID client_secret = settings.VIDEO_ZOOM_CLIENT_SECRET - if user.realm.string_id in settings.VIDEO_ZOOM_TESTING_REALMS: # nocoverage - client_id = settings.VIDEO_ZOOM_TESTING_CLIENT_ID - client_secret = settings.VIDEO_ZOOM_TESTING_CLIENT_SECRET return OAuth2Session( client_id, @@ -129,8 +126,6 @@ def complete_zoom_user_in_realm( raise JsonableError(_("Invalid Zoom session identifier")) client_secret = settings.VIDEO_ZOOM_CLIENT_SECRET - if request.user.realm.string_id in settings.VIDEO_ZOOM_TESTING_REALMS: # nocoverage - client_secret = settings.VIDEO_ZOOM_TESTING_CLIENT_SECRET oauth = get_zoom_session(request.user) try: diff --git a/zproject/default_settings.py b/zproject/default_settings.py index 3e511e420f..c9d3dbd1b2 100644 --- a/zproject/default_settings.py +++ b/zproject/default_settings.py @@ -1,5 +1,5 @@ import os -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set +from typing import TYPE_CHECKING, Any, Dict, List, Optional from scripts.lib.zulip_tools import deport @@ -110,9 +110,6 @@ SSO_APPEND_DOMAIN: Optional[str] = None VIDEO_ZOOM_CLIENT_ID = get_secret("video_zoom_client_id", development_only=True) VIDEO_ZOOM_CLIENT_SECRET = get_secret("video_zoom_client_secret") -VIDEO_ZOOM_TESTING_REALMS: Set[str] = set() -VIDEO_ZOOM_TESTING_CLIENT_ID = get_secret("video_zoom_testing_client_id", development_only=True) -VIDEO_ZOOM_TESTING_CLIENT_SECRET = get_secret("video_zoom_testing_client_secret") # Email gateway EMAIL_GATEWAY_PATTERN = ""