refactor: pyupgrade in heartbeat, lang_pref, models (#26916)

This commit is contained in:
M. Zulqarnain
2021-03-16 14:15:01 +05:00
committed by GitHub
parent e9239e5972
commit c8902bed58
13 changed files with 36 additions and 44 deletions

View File

@@ -21,7 +21,7 @@ class CourseDetailsTestCase(ModuleStoreTestCase):
"""
def setUp(self):
super(CourseDetailsTestCase, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
super().setUp()
self.course = CourseFactory.create()
def test_virgin_fetch(self):
@@ -141,4 +141,4 @@ class CourseDetailsTestCase(ModuleStoreTestCase):
CourseDetails.update_about_video(self.course, video_value, self.user.id)
assert CourseDetails.fetch_youtube_video_id(self.course.id) == video_value
video_url = CourseDetails.fetch_video_url(self.course.id)
self.assertRegex(video_url, r'http://.*{}'.format(video_value))
self.assertRegex(video_url, fr'http://.*{video_value}')