Skip to content

Commit

Permalink
more info on test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Feb 22, 2019
1 parent 2589523 commit bec783a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ python:
install:
- pip install flake8 -r requirements.txt
script:
- flake8 --max-line-length=150 --exclude=venv,docs,build --ignore=F401,F403,F405 .
- flake8 .
- nosetests
jobs:
include:
Expand Down
6 changes: 3 additions & 3 deletions tests/registrar_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_department(self):
cis = self.reg.department('cis')
next(cis) # Should be an iterator
# Should have multiple pages of items
self.assertGreater(len(list(cis)), 20)
self.assertGreater(len(list(cis)), 20, str(list(cis)))

def test_course(self):
cis120 = self.reg.course('cis', '120')
Expand All @@ -32,8 +32,8 @@ def test_course(self):
def test_search(self):
cis_search = self.reg.search({'course_id': 'cis'})
cis_dept = self.reg.department('cis')
self.assertGreater(len(list(cis_dept)), 20, str(cis_dept))
self.assertGreaterEqual(len(list(cis_search)), 20, str(cis_search))
self.assertGreater(len(list(cis_dept)), 20, str(list(cis_dept)))
self.assertGreaterEqual(len(list(cis_search)), 20, str(list(cis_search)))

def test_search_params(self):
params = self.reg.search_params()
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
[tox]
envlist = py27, py34

[flake8]
max-line-length = 150
exclude = venv,docs,build
ignore = F401,F403,F405

[testenv]
commands = nosetests []
deps =
Expand Down

0 comments on commit bec783a

Please sign in to comment.