Skip to content

Commit e9cb516

Browse files
committed
nose -> pytest
1 parent 0b1a2ac commit e9cb516

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ and update CHANGELOG.rst.
353353
How to test your contribution
354354
------------------------------
355355

356-
Although `nose` and `doctest` are both used in code testing, it is adviable that unit tests are put in tests. `doctest` is incorporated only to make sure the code examples in documentation remain valid across different development releases.
356+
Although `pytest` and `doctest` are both used in code testing, it is adviable that unit tests are put in tests. `doctest` is incorporated only to make sure the code examples in documentation remain valid across different development releases.
357357

358358
On Linux/Unix systems, please launch your tests like this::
359359

pytest.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = --cov=pyexcel_ods --doctest-glob="*.rst" tests/ README.rst docs/source pyexcel_ods

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def filter_out_test_code(file_handle):
193193
keywords=KEYWORDS,
194194
python_requires=PYTHON_REQUIRES,
195195
extras_require=EXTRAS_REQUIRE,
196-
tests_require=["nose"],
196+
tests_require=["pytest", "pytest-cov"],
197197
install_requires=INSTALL_REQUIRES,
198198
packages=PACKAGES,
199199
include_package_data=True,

test.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip freeze
2-
nosetests --with-coverage --cover-package pyexcel_ods --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_ods
2+
pytest

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#/bin/bash
22
pip freeze
3-
nosetests --with-coverage --cover-package pyexcel_ods --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_ods
3+
pytest

tests/requirements.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
nose
2-
mock;python_version<"3"
1+
pytest
2+
pytest-cov
33
codecov
4-
coverage
54
flake8
65
black
76
isort

0 commit comments

Comments
 (0)