video_calls: Drop VIDEO_ZOOM_TESTING_ configurations.

These are no longer needed.
This commit is contained in:
Alex Vandiver
2021-12-13 12:32:23 -08:00
committed by Tim Abbott
parent 5ccbd0eade
commit e43373cc1f
2 changed files with 1 additions and 9 deletions

View File

@@ -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: