Skip to content

Commit 5711075

Browse files
authored
Merge pull request #3789 from munkm/pytest
modify contributing instructions to use pytest for testing
2 parents 26ec595 + f9d578e commit 5711075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ Install dependencies::
136136

137137
To run the Python tests, use::
138138

139-
nosetests
139+
pytest
140140

141141
If you want coverage statistics as well, you can run::
142142

143-
nosetests --with-coverage --cover-package=notebook notebook
143+
py.test --cov notebook -v --pyargs notebook
144144

145145
JavaScript Tests
146146
^^^^^^^^^^^^^^^^

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
':python_version == "2.7"': ['ipaddress'],
118118
'test:python_version == "2.7"': ['mock'],
119119
'test': ['nose', 'coverage', 'requests', 'nose_warnings_filters',
120-
'nbval', 'nose-exclude', 'selenium'],
120+
'nbval', 'nose-exclude', 'selenium', 'pytest', 'pytest-cov'],
121121
'test:sys_platform == "win32"': ['nose-exclude'],
122122
},
123123
python_requires = '>=3.4',

0 commit comments

Comments
 (0)