Skip to content

Commit 1174086

Browse files
committed
Migrating nose>py.test
1 parent 53d4bcd commit 1174086

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build/
44
dist/
55
*.swp
66
.coverage
7+
.cache

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ before_install:
1515
- conda info -a
1616

1717
install:
18-
- conda install --yes nose python=${TRAVIS_PYTHON_VERSION}
18+
- conda install --yes pytest python=${TRAVIS_PYTHON_VERSION}
1919
- python setup.py install
2020

2121
script:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test:
2-
nosetests -sv jwzthreading/tests
2+
py.test -sv jwzthreading/tests
33

44
cov:
55
coverage run jwzthreading/tests/test_jwz.py

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3232
test_script:
3333
- activate jwz-env # activate the virtualenv
34-
- nosetests -sv jwzthreading/tests/
34+
- py.test -sv jwzthreading/tests/

jwzthreading/tests/test_newsgroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)