Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b388ab9d
Commit
b388ab9d
authored
Nov 08, 2014
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PEP8: E226 missing whitespace around arithmetic operator
parent
00ae4889
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
common/lib/xmodule/xmodule/lti_module.py
+1
-1
common/test/acceptance/pages/lms/annotation_component.py
+1
-1
common/test/data/uploads/python_lib_zip/number_helpers.py
+1
-1
lms/djangoapps/courseware/tests/test_navigation.py
+1
-1
scripts/cov_merge.py
+1
-1
No files found.
common/lib/xmodule/xmodule/lti_module.py
View file @
b388ab9d
...
...
@@ -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
:
...
...
common/test/acceptance/pages/lms/annotation_component.py
View file @
b388ab9d
...
...
@@ -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
,
)
...
...
common/test/data/uploads/python_lib_zip/number_helpers.py
View file @
b388ab9d
...
...
@@ -3,4 +3,4 @@ def seventeen():
def
fortytwo
(
x
):
return
42
+
x
return
42
+
x
lms/djangoapps/courseware/tests/test_navigation.py
View file @
b388ab9d
...
...
@@ -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
):
...
...
scripts/cov_merge.py
View file @
b388ab9d
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment