Add pytest-runner and test-->pytest alias to make tests run as documented.

This commit is contained in:
Israel Saeta Pérez 2016-11-12 18:27:25 +01:00
parent bb0b4fa766
commit 9e9a08ffe4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,6 @@
[aliases]
test=pytest
[tool:pytest] [tool:pytest]
DJANGO_SETTINGS_MODULE = django_test_settings DJANGO_SETTINGS_MODULE = django_test_settings

View File

@ -38,6 +38,9 @@ setup(
'iso8601', 'iso8601',
'singledispatch>=3.4.0.3', 'singledispatch>=3.4.0.3',
], ],
setup_requires=[
'pytest-runner',
],
tests_require=[ tests_require=[
'django-filter>=0.10.0', 'django-filter>=0.10.0',
'pytest', 'pytest',