Skip to content

Commit d5951b8

Browse files
authored
Merge pull request #54 from dukebody/add-pytest-runner
Add `pytest-runner` and test-->pytest alias to make tests run as documented
2 parents 1e7c7ac + 9e9a08f commit d5951b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

setup.cfg

+3
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

+3
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)