File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 44dist /
55* .swp
66.coverage
7+ .cache
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ before_install:
1515 - conda info -a
1616
1717install :
18- - conda install --yes nose python=${TRAVIS_PYTHON_VERSION}
18+ - conda install --yes pytest python=${TRAVIS_PYTHON_VERSION}
1919 - python setup.py install
2020
2121script :
Original file line number Diff line number Diff line change 11test :
2- nosetests -sv jwzthreading/tests
2+ py.test -sv jwzthreading/tests
33
44cov :
55coverage run jwzthreading/tests/test_jwz.py
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ install:
2525 - conda info -a
2626 # create a conda virtual environement
2727 - " cd C:\\ projects\\ jwzthreading"
28- - " conda create -n jwz-env --yes nose python=%PYTHON_VERSION%"
28+ - " conda create -n jwz-env --yes pytest python=%PYTHON_VERSION%"
2929 - activate jwz-env
3030 - python setup.py install
3131
3232test_script :
3333 - activate jwz-env # activate the virtualenv
34- - nosetests -sv jwzthreading/tests/
34+ - py.test -sv jwzthreading/tests/
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def test_parse_mailman_htmlthread():
3636 threads = parse_mailman_htmlthread (os .path .join (DATA_DIR ,
3737 '2010-January_thread.html' ))
3838
39- print ( sum ([el .size for el in threads ]))
39+ assert sum ([el .size for el in threads ]) == N_JUNE2010_EMAILS
4040
4141 print ('OK' )
4242 #for el in threads:
You can’t perform that action at this time.
0 commit comments