From 9e9a08ffe4e0296181ac8a235643e0ffeeebe692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Israel=20Saeta=20P=C3=A9rez?= Date: Sat, 12 Nov 2016 18:27:25 +0100 Subject: [PATCH] Add `pytest-runner` and test-->pytest alias to make tests run as documented. --- setup.cfg | 3 +++ setup.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/setup.cfg b/setup.cfg index d1d6da9..c50ce70 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ +[aliases] +test=pytest + [tool:pytest] DJANGO_SETTINGS_MODULE = django_test_settings diff --git a/setup.py b/setup.py index bc18814..d5787c7 100644 --- a/setup.py +++ b/setup.py @@ -38,6 +38,9 @@ setup( 'iso8601', 'singledispatch>=3.4.0.3', ], + setup_requires=[ + 'pytest-runner', + ], tests_require=[ 'django-filter>=0.10.0', 'pytest',