From 48acf389b16624c258127655e7a502e5019f8b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=A1o=20Belica?= Date: Sat, 31 Mar 2018 11:25:22 +0200 Subject: [PATCH] Prefer pytest over nosetest runner --- README.rst | 4 ++-- setup.cfg | 6 ++---- setup.py | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 7a103c2..2145c4d 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ breadability - another readability Python (v2.6-v3.3) port -=========================================================== +========================================================== .. image:: https://api.travis-ci.org/bookieio/breadability.png?branch=master :target: https://travis-ci.org/bookieio/breadability.py @@ -55,7 +55,7 @@ Tests ----- .. code-block:: bash - $ nosetests-2.6 tests && nosetests-3.2 tests && nosetests-2.7 tests && nosetests-3.3 tests + $ pytest tests Usage diff --git a/setup.cfg b/setup.cfg index 2b49a7e..8402be0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,5 @@ -[nosetests] -with-coverage=1 -cover-package=breadability -cover-erase=1 +[tool:pytest] +addopts = --quiet --tb=native --color=yes [bdist_wheel] universal = 1 diff --git a/setup.py b/setup.py index 2a317a8..7ec4f89 100644 --- a/setup.py +++ b/setup.py @@ -90,7 +90,7 @@ setup( zip_safe=False, install_requires=install_requires, tests_require=tests_require, - test_suite="nose.collector", + test_suite="tests", entry_points={ "console_scripts": console_script_targets, }