From 7288336ad4d757f932c1c67d705280de39d4fb6b Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Sat, 25 May 2019 16:43:43 +0200 Subject: [PATCH] Replace native test runner with pytest --- setup.cfg | 3 +++ setup.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 5b443dcf7..27af3897d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,6 +2,9 @@ # E722 do not use bare except, specify exception instead # F841 local variable '' is assigned to but never used +[aliases] +test=pytest + [pep8] exclude=resources.py,vlc.py max-line-length = 120 diff --git a/setup.py b/setup.py index dcf430d4c..260f0f8be 100644 --- a/setup.py +++ b/setup.py @@ -204,8 +204,9 @@ using a computer and a data projector.""", 'PyMuPDF', 'pyodbc', 'pysword', + 'pytest', 'python-xlib; platform_system=="Linux"' ], - test_suite='tests', + setup_requires=['pytest-runner'], entry_points={'gui_scripts': ['openlp = run_openlp:start']} )