Commit b388ab9d by stv

Fix PEP8: E226 missing whitespace around arithmetic operator

parent 00ae4889
...@@ -773,7 +773,7 @@ oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"'} ...@@ -773,7 +773,7 @@ oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"'}
imsx_messageIdentifier = root.xpath("//def:imsx_messageIdentifier", namespaces=namespaces)[0].text or '' imsx_messageIdentifier = root.xpath("//def:imsx_messageIdentifier", namespaces=namespaces)[0].text or ''
sourcedId = root.xpath("//def:sourcedId", namespaces=namespaces)[0].text sourcedId = root.xpath("//def:sourcedId", namespaces=namespaces)[0].text
score = root.xpath("//def:textString", 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. # Raise exception if score is not float or not in range 0.0-1.0 regarding spec.
score = float(score) score = float(score)
if not 0 <= score <= 1: if not 0 <= score <= 1:
......
...@@ -41,7 +41,7 @@ class AnnotationComponentPage(PageObject): ...@@ -41,7 +41,7 @@ class AnnotationComponentPage(PageObject):
Return css selector for current active problem with sub_selector. Return css selector for current active problem with sub_selector.
""" """
return 'div[data-problem-id="{}"] {}'.format( 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], lambda el: el.get_attribute('data-id')).results[0],
sub_selector, sub_selector,
) )
......
...@@ -3,4 +3,4 @@ def seventeen(): ...@@ -3,4 +3,4 @@ def seventeen():
def fortytwo(x): def fortytwo(x):
return 42+x return 42 + x
...@@ -79,7 +79,7 @@ class TestNavigation(ModuleStoreTestCase, LoginEnrollmentTestCase): ...@@ -79,7 +79,7 @@ class TestNavigation(ModuleStoreTestCase, LoginEnrollmentTestCase):
''' Check if the progress tab is active in the tab set ''' ''' Check if the progress tab is active in the tab set '''
for line in response.content.split('\n'): for line in response.content.split('\n'):
if tabname in line and 'active' in line: if tabname in line and 'active' in line:
raise AssertionError("assertTabInactive failed: "+tabname+" active") raise AssertionError("assertTabInactive failed: " + tabname + " active")
return return
def test_chrome_settings(self): def test_chrome_settings(self):
......
...@@ -119,7 +119,7 @@ class ReportMerge(object): ...@@ -119,7 +119,7 @@ class ReportMerge(object):
report_path = os.path.join(self.DESTINATION, output_file) report_path = os.path.join(self.DESTINATION, output_file)
else: else:
report_filename = path.split('reports/')[1].split('/cover')[0].replace('/', '_') 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 # Write everything to single report file
with open(report_path, 'w') as report_file: with open(report_path, 'w') as report_file:
......
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