Commit 29bb31c7 by Sven Marnach

Make tests pass on Travis.

parent f0d009c1
......@@ -3,6 +3,7 @@ python:
- 2.7
install:
- pip install -r test-requirements.txt
- pip install -r $VIRTUAL_ENV/src/xblock/requirements.txt
script:
- pep8 --max-line-length=100 activetable
- pylint activetable
......
......@@ -54,9 +54,7 @@ class NumericCell(Cell):
except ValueError:
return False
if self.min_significant_digits or self.max_significant_digits:
# pylint: disable=no-member
digits = len(decimal.Decimal(student_response).as_tuple().digits)
# pylint: enable=no-member
if self.min_significant_digits and digits < self.min_significant_digits:
return False
if self.max_significant_digits and digits > self.max_significant_digits:
......
......@@ -8,9 +8,12 @@ max-line-length=100
disable=
I,
attribute-defined-outside-init,
maybe-no-member,
star-args,
too-few-public-methods,
too-many-ancestors,
too-many-instance-attributes
too-many-instance-attributes,
too-many-public-methods
[VARIABLES]
dummy-variables-rgx=_$|dummy|unused
django>=1.4, <1.5
pyyaml
-e git+https://github.com/edx/XBlock.git@tag-master-2015-05-22#egg=XBlock
-e git+https://github.com/edx/xblock-utils.git@b4f9b51146c7fafa12f41d54af752b8f1516dffd#egg=xblock-utils
-e .
......@@ -4,4 +4,4 @@ coverage
ddt
nose
pep8
pylint
pylint==1.3.1 # Same version as XBlock requires to avoid conflicting requirements
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