From c07c0d6e119356ec82572aa8d381052aa71408e9 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 11 Dec 2017 16:21:34 +0100 Subject: running tests via 'nose' and 'setuptools' --- Makefile.in | 3 +-- setup.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 1693ad7..5f3c47a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -49,5 +49,4 @@ install: $(templates) install-data .PHONY: check check: @export TALER_CONFIG_FILE=@abs_srcdir@/talersurvey/tests.conf; \ - export PYTHONPATH=@prefix@/lib/python@PYTHON_VERSION@/site-packages; \ - python3 talersurvey/tests.py + python3 setup.py test diff --git a/setup.py b/setup.py index 6e92670..2fa7539 100755 --- a/setup.py +++ b/setup.py @@ -9,6 +9,8 @@ setup(name='talersurvey', license='GPL', packages=find_packages(), install_requires=["Flask>=0.10"], + test_suite="nose.collector", + tests_require=["mock", "nose"], package_data={ '':[ "survey/templates/*.html", -- cgit v1.2.3