summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2017-12-11 16:21:34 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2017-12-11 16:21:34 +0100
commitc07c0d6e119356ec82572aa8d381052aa71408e9 (patch)
tree29fce576569307b2afe44c44b9932101cfef7cd7
parentb5999a01a985c857347de9941d94f9d81f77124f (diff)
downloadsurvey-c07c0d6e119356ec82572aa8d381052aa71408e9.tar.gz
survey-c07c0d6e119356ec82572aa8d381052aa71408e9.tar.bz2
survey-c07c0d6e119356ec82572aa8d381052aa71408e9.zip
running tests via 'nose' and 'setuptools'
-rw-r--r--Makefile.in3
-rwxr-xr-xsetup.py2
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",