Commit 29bb31c7 by Sven Marnach

Make tests pass on Travis.

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