Commit 5a69fead by stv

Fix PEP8: E123 closing bracket does not match

indentation of opening bracket's line
parent 55de42d1
......@@ -526,8 +526,7 @@ class StubOraService(StubHttpService):
'num_graded': self.DUMMY_DATA['problem_list_num_graded'],
'num_pending': self.DUMMY_DATA['problem_list_num_pending'],
'num_required': self.DUMMY_DATA['problem_list_num_required']
} for location, name in self.problems.items()
]
} for location, name in self.problems.items()]
def register_problem(self, location, name):
"""
......
......@@ -2121,7 +2121,8 @@ class CodeResponse(LoncapaResponse):
if not parsed:
log.error("Unable to parse external grader message as valid"
" XML: score_msg['msg']=%s", msg)
" XML: score_msg['msg']=%s", msg
)
return fail
return (True, score_result['correct'], score_result['score'], msg)
......
......@@ -442,7 +442,8 @@ class CourseFields(object):
"action_url": "SettingsDetails",
"action_text": _("Edit Course Schedule & Details"),
"action_external": False}]}
])
]
)
info_sidebar_name = String(
display_name=_("Course Info Sidebar Name"),
help=_("Enter the heading that you want students to see above your course handouts on the Course Info page. Your course handouts appear in the right panel of the page."),
......
......@@ -147,7 +147,8 @@ class CourseNavPage(PageObject):
# It *would* make sense to always get the HTML, but unfortunately
# the open tab has some child <span> tags that we don't want.
return self.q(
css=subsection_css).map(
css=subsection_css
).map(
lambda el: el.text.strip().split('\n')[0] if el.is_displayed() else el.get_attribute('innerHTML').strip()
).results
......
......@@ -80,7 +80,9 @@ class OpenResponseTest(UniqueCourseTest):
# This is the interface a student can use to grade his/her peers
XBlockFixtureDesc('peergrading', 'Peer Module'),
))).install()
)
)
).install()
# Configure the XQueue stub's response for the text we will submit
# The submission text is unique so we can associate each response with a particular test case.
......
......@@ -134,7 +134,7 @@ MOCK_MODULES = [
'yaml',
'webob',
'webob.multidict',
]
]
if on_rtd:
for mod_name in MOCK_MODULES:
......
......@@ -126,7 +126,7 @@ MOCK_MODULES = [
'yaml',
'webob',
'webob.multidict',
]
]
if on_rtd:
for mod_name in MOCK_MODULES:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment