From 4bc2e74a40cd53a2045e8efcc72ce10d66379d1f Mon Sep 17 00:00:00 2001 From: hajorg Date: Mon, 4 Dec 2023 17:13:30 +0100 Subject: [PATCH] fix: resolve lint issue --- .../contentstore/rest_api/v1/views/tests/test_videos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_videos.py b/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_videos.py index 753ddcfb28..993072e071 100644 --- a/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_videos.py +++ b/cms/djangoapps/contentstore/rest_api/v1/views/tests/test_videos.py @@ -127,8 +127,9 @@ class CourseVideosViewTest(CourseTestCase, PermissionAccessMixin): ) self.assertIn("transcript_credentials_handler_url", transcript_settings) self.assertEqual(expected_credentials_handler, transcript_settings["transcript_credentials_handler_url"]) - from openedx.core.djangoapps.video_config.toggles import XPERT_TRANSLATIONS_UI - with patch('openedx.core.djangoapps.video_config.toggles.XPERT_TRANSLATIONS_UI.is_enabled') as xpertTranslationfeature: + with patch( + 'openedx.core.djangoapps.video_config.toggles.XPERT_TRANSLATIONS_UI.is_enabled' + ) as xpertTranslationfeature: xpertTranslationfeature.return_value = True response = self.client.get(self.url) self.assertIn("is_ai_translations_enabled", response.data)