Skip to content

Commit

Permalink
Merge ccbaa15 into 8624cbd
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiabhi94 committed Mar 11, 2021
2 parents 8624cbd + ccbaa15 commit 762f08d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To run tests against a particular ``python`` and ``django`` version installed in

.. code:: sh
(venv) $ python manage.py test
(venv) $ pytest
To run tests against all supported ``python`` and ``django`` versions, you may run:

Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ extend-ignore =

[isort]
known_third_party = django, rest_framework
[tool:pytest]
DJANGO_SETTINGS_MODULE = testapp.settings
# Standard pytest options
addopts = -p no:warnings --reuse-db
3 changes: 2 additions & 1 deletion testapp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
django
djangorestframework
coverage
flake8
tox
Pillow
pytest-django
pytest-cov
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ DJANGO =

[testenv]
deps =
coverage
flake8
Pillow
djangorestframework
pytest-django
pytest-cov
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
Expand All @@ -35,8 +36,7 @@ commands =
python -m pip install --upgrade pip
flake8
python manage.py migrate
coverage run manage.py test
coverage report -m --skip-covered
pytest --cov

setenv =
PYTHONDONTWRITEBYTECODE=1

0 comments on commit 762f08d

Please sign in to comment.