Skip to content

Commit 9e9a08f

Browse files
committed
Add pytest-runner and test-->pytest alias to make tests run as documented.
1 parent bb0b4fa commit 9e9a08f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[aliases]
2+
test=pytest
3+
14
[tool:pytest]
25
DJANGO_SETTINGS_MODULE = django_test_settings
36

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
'iso8601',
3939
'singledispatch>=3.4.0.3',
4040
],
41+
setup_requires=[
42+
'pytest-runner',
43+
],
4144
tests_require=[
4245
'django-filter>=0.10.0',
4346
'pytest',

0 commit comments

Comments
 (0)