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
13766208
Commit
13766208
authored
Mar 12, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squelch pep8 and pylint output unless they fail
parent
7b2efa9d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
common/lib/xmodule/xmodule/randomize_module.py
+2
-5
jenkins/test.sh
+2
-2
No files found.
common/lib/xmodule/xmodule/randomize_module.py
View file @
13766208
import
json
import
logging
import
logging
import
random
import
random
from
xmodule.mako_module
import
MakoModuleDescriptor
from
xmodule.x_module
import
XModule
from
xmodule.x_module
import
XModule
from
xmodule.xml_module
import
XmlDescriptor
from
xmodule.modulestore
import
Location
from
xmodule.seq_module
import
SequenceDescriptor
from
xmodule.seq_module
import
SequenceDescriptor
from
pkg_resources
import
resource_string
from
xblock.core
import
Scope
,
Integer
log
=
logging
.
getLogger
(
'mitx.'
+
__name__
)
log
=
logging
.
getLogger
(
'mitx.'
+
__name__
)
...
@@ -99,6 +95,7 @@ class RandomizeDescriptor(SequenceDescriptor):
...
@@ -99,6 +95,7 @@ class RandomizeDescriptor(SequenceDescriptor):
stores_state
=
True
stores_state
=
True
def
definition_to_xml
(
self
,
resource_fs
):
def
definition_to_xml
(
self
,
resource_fs
):
xml_object
=
etree
.
Element
(
'randomize'
)
xml_object
=
etree
.
Element
(
'randomize'
)
for
child
in
self
.
get_children
():
for
child
in
self
.
get_children
():
xml_object
.
append
(
xml_object
.
append
(
...
...
jenkins/test.sh
View file @
13766208
...
@@ -39,8 +39,8 @@ pip install -q -r pre-requirements.txt
...
@@ -39,8 +39,8 @@ pip install -q -r pre-requirements.txt
yes w | pip install
-q
-r
test-requirements.txt
-r
requirements.txt
yes w | pip install
-q
-r
test-requirements.txt
-r
requirements.txt
rake clobber
rake clobber
rake pep8
rake pep8
>
pep8.log |
cat
pep8.log
rake pylint
rake pylint
>
pylint.log |
cat
pylint.log
TESTS_FAILED
=
0
TESTS_FAILED
=
0
rake test_cms[false]
||
TESTS_FAILED
=
1
rake test_cms[false]
||
TESTS_FAILED
=
1
...
...
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