From e80cc05c65b55a95f134a6d2fe8e77fb6e9b6a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Wed, 24 Mar 2021 11:01:45 +0100 Subject: [PATCH] use unittest testrunner ... instead the deprecated `python setup.py tests`. The latter one issued the following warning: "WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox." Another plus is that both the unittest runner and pytest also show deprecation warnings, which `python setup.py tests` does not. --- setup.py | 4 ---- tox.ini | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 2ed4266..2a1cbfd 100644 --- a/setup.py +++ b/setup.py @@ -28,15 +28,11 @@ 'Flask-SQLAlchemy>=1.0', 'alembic>=0.7' ], - tests_require=[ - 'Flask-Script>=0.6' - ], entry_points={ 'flask.commands': [ 'db=flask_migrate.cli:db' ], }, - test_suite="tests", classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', diff --git a/tox.ini b/tox.ini index ecb2759..846b0d3 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ python = deps= flask-script commands= - python setup.py test + python -m unittest discover [testenv:flake8] deps=