Commit 13766208 by Calen Pennington

Squelch pep8 and pylint output unless they fail

parent 7b2efa9d
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(
......
...@@ -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
......
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