Merge pull request #19751 from edx/unicode10
enable unicode format string linter
This commit is contained in:
@@ -439,7 +439,7 @@ class VideoComponentPage(VideoPage):
|
||||
|
||||
self.q(css='#{}'.format(field_id)).fill(field_value)
|
||||
elif field_type == 'select':
|
||||
self.q(css='select[name="{0}"] option[value="{1}"]'.format(field_name, field_value)).first.click()
|
||||
self.q(css=u'select[name="{0}"] option[value="{1}"]'.format(field_name, field_value)).first.click()
|
||||
|
||||
def verify_field_value(self, field_name, field_value):
|
||||
"""
|
||||
|
||||
@@ -51,7 +51,7 @@ class EdxNotesTestMixin(UniqueCourseTest):
|
||||
XBlockFixtureDesc(
|
||||
"html",
|
||||
"Test HTML 1",
|
||||
data="""
|
||||
data=u"""
|
||||
<p><span class="{}">Annotate this!</span></p>
|
||||
<p>Annotate this</p>
|
||||
""".format(self.selector)
|
||||
|
||||
@@ -321,10 +321,10 @@ class SubsectionGradingPolicyTest(SubsectionGradingPolicyBase):
|
||||
|
||||
def test_subsection_grading_policy_on_progress_page(self):
|
||||
with self._logged_in_session():
|
||||
self._check_scores_and_page_text([(0, 1), (0, 1)], (0, 2), "Homework 1 - Test Subsection 1 - 0% (0/2)")
|
||||
self._check_scores_and_page_text([(0, 1), (0, 1)], (0, 2), u"Homework 1 - Test Subsection 1 - 0% (0/2)")
|
||||
self.courseware_page.visit()
|
||||
self._answer_problem_correctly()
|
||||
self._check_scores_and_page_text([(1, 1), (0, 1)], (1, 2), "Homework 1 - Test Subsection 1 - 50% (1/2)")
|
||||
self._check_scores_and_page_text([(1, 1), (0, 1)], (1, 2), u"Homework 1 - Test Subsection 1 - 50% (1/2)")
|
||||
|
||||
self._set_policy_for_subsection("Not Graded")
|
||||
|
||||
@@ -337,7 +337,7 @@ class SubsectionGradingPolicyTest(SubsectionGradingPolicyBase):
|
||||
self._set_policy_for_subsection("Homework")
|
||||
|
||||
with self._logged_in_session():
|
||||
self._check_scores_and_page_text([(1, 1), (0, 1)], (1, 2), "Homework 1 - Test Subsection 1 - 50% (1/2)")
|
||||
self._check_scores_and_page_text([(1, 1), (0, 1)], (1, 2), u"Homework 1 - Test Subsection 1 - 50% (1/2)")
|
||||
|
||||
|
||||
class SubsectionGradingPolicyA11yTest(SubsectionGradingPolicyBase):
|
||||
|
||||
Reference in New Issue
Block a user