Fix PEP8: E226 missing whitespace around arithmetic operator
This commit is contained in:
@@ -773,7 +773,7 @@ oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"'}
|
||||
imsx_messageIdentifier = root.xpath("//def:imsx_messageIdentifier", namespaces=namespaces)[0].text or ''
|
||||
sourcedId = root.xpath("//def:sourcedId", namespaces=namespaces)[0].text
|
||||
score = root.xpath("//def:textString", namespaces=namespaces)[0].text
|
||||
action = root.xpath("//def:imsx_POXBody", namespaces=namespaces)[0].getchildren()[0].tag.replace('{'+lti_spec_namespace+'}', '')
|
||||
action = root.xpath("//def:imsx_POXBody", namespaces=namespaces)[0].getchildren()[0].tag.replace('{' + lti_spec_namespace + '}', '')
|
||||
# Raise exception if score is not float or not in range 0.0-1.0 regarding spec.
|
||||
score = float(score)
|
||||
if not 0 <= score <= 1:
|
||||
|
||||
@@ -41,7 +41,7 @@ class AnnotationComponentPage(PageObject):
|
||||
Return css selector for current active problem with sub_selector.
|
||||
"""
|
||||
return 'div[data-problem-id="{}"] {}'.format(
|
||||
self.q(css='.vert-{}'.format(self.active_problem+1)).map(
|
||||
self.q(css='.vert-{}'.format(self.active_problem + 1)).map(
|
||||
lambda el: el.get_attribute('data-id')).results[0],
|
||||
sub_selector,
|
||||
)
|
||||
|
||||
@@ -3,4 +3,4 @@ def seventeen():
|
||||
|
||||
|
||||
def fortytwo(x):
|
||||
return 42+x
|
||||
return 42 + x
|
||||
|
||||
@@ -79,7 +79,7 @@ class TestNavigation(ModuleStoreTestCase, LoginEnrollmentTestCase):
|
||||
''' Check if the progress tab is active in the tab set '''
|
||||
for line in response.content.split('\n'):
|
||||
if tabname in line and 'active' in line:
|
||||
raise AssertionError("assertTabInactive failed: "+tabname+" active")
|
||||
raise AssertionError("assertTabInactive failed: " + tabname + " active")
|
||||
return
|
||||
|
||||
def test_chrome_settings(self):
|
||||
|
||||
@@ -119,7 +119,7 @@ class ReportMerge(object):
|
||||
report_path = os.path.join(self.DESTINATION, output_file)
|
||||
else:
|
||||
report_filename = path.split('reports/')[1].split('/cover')[0].replace('/', '_')
|
||||
report_path = os.path.join(self.DESTINATION, report_filename+'_coverage.html')
|
||||
report_path = os.path.join(self.DESTINATION, report_filename + '_coverage.html')
|
||||
|
||||
# Write everything to single report file
|
||||
with open(report_path, 'w') as report_file:
|
||||
|
||||
Reference in New Issue
Block a user