BOM-2494: pyupgrade second iteration-IX (#27449)
This commit is contained in:
@@ -36,7 +36,7 @@ class AccountSettingsTestMixin(EventsTestMixin, AcceptanceTest):
|
||||
"""
|
||||
Create a unique user and return the account's username and id.
|
||||
"""
|
||||
username = "test_{uuid}".format(uuid=self.unique_id[0:6])
|
||||
username = f"test_{self.unique_id[0:6]}"
|
||||
auto_auth_page = AutoAuthPage(
|
||||
self.browser,
|
||||
username=username,
|
||||
|
||||
@@ -30,7 +30,7 @@ class LearnerProfileTestMixin(EventsTestMixin):
|
||||
"""
|
||||
Create a unique user and return the account's username and id.
|
||||
"""
|
||||
username = "test_{uuid}".format(uuid=self.unique_id[0:6])
|
||||
username = f"test_{self.unique_id[0:6]}"
|
||||
auto_auth_page = AutoAuthPage(self.browser, username=username).visit()
|
||||
user_id = auto_auth_page.get_user_id()
|
||||
return username, user_id
|
||||
|
||||
@@ -52,7 +52,7 @@ class BaseLmsDashboardTestMultiple(UniqueCourseTest):
|
||||
}
|
||||
}
|
||||
|
||||
self.username = "test_{uuid}".format(uuid=self.unique_id[0:6])
|
||||
self.username = f"test_{self.unique_id[0:6]}"
|
||||
self.email = f"{self.username}@example.com"
|
||||
|
||||
self.course_keys = {}
|
||||
|
||||
@@ -21,7 +21,7 @@ class ProblemsTest(UniqueCourseTest):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
|
||||
self.username = "test_student_{uuid}".format(uuid=self.unique_id[0:8])
|
||||
self.username = f"test_student_{self.unique_id[0:8]}"
|
||||
self.email = f"{self.username}@example.com"
|
||||
self.password = "keep it secret; keep it safe."
|
||||
|
||||
|
||||
@@ -240,13 +240,13 @@ class SubsectionGradingPolicyA11yTest(SubsectionGradingPolicyBase):
|
||||
for i in range(1, 10):
|
||||
self._check_tick_text(
|
||||
i,
|
||||
['Homework {index} Unreleased - 0% (?/?)'.format(index=i + 1)],
|
||||
'HW 0{index}'.format(index=i + 1) if i < 9 else 'HW {index}'.format(index=i + 1)
|
||||
[f'Homework {i + 1} Unreleased - 0% (?/?)'],
|
||||
f'HW 0{i + 1}' if i < 9 else f'HW {i + 1}'
|
||||
)
|
||||
self._check_tick_text(
|
||||
i + 13,
|
||||
['Lab {index} Unreleased - 0% (?/?)'.format(index=i + 1)],
|
||||
'Lab 0{index}'.format(index=i + 1) if i < 9 else 'Lab {index}'.format(index=i + 1)
|
||||
[f'Lab {i + 1} Unreleased - 0% (?/?)'],
|
||||
f'Lab 0{i + 1}' if i < 9 else f'Lab {i + 1}'
|
||||
)
|
||||
|
||||
# Verify the overall score. The first element in the array is the sr-only text, and the
|
||||
|
||||
Reference in New Issue
Block a user