fix: resolve lint issue

This commit is contained in:
hajorg
2023-12-04 17:13:30 +01:00
parent b70e29a0ab
commit 4bc2e74a40

View File

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