Skip to content

Commit

Permalink
updated tests to use newest django
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Nov 9, 2020
1 parent c5b90da commit 1a8aa8e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ source =

branch = True
omit =
*/__about__.py
*/test_project/*
*/metadata.py

Expand Down
14 changes: 7 additions & 7 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
python_files =
django_admin_generator/*.py
test_project/*.py
tests.py
test_*.py
*_tests.py

addopts =
--cov django_admin_generator
--cov-report term-missing
--cov-report html
--pep8
--flakes
--flake8

pep8ignore =
*.py W391
docs/*.py ALL

flakes-ignore =
flake8-ignore =
*.py W391 W504
docs/*.py ALL
test_project/*.py

DJANGO_SETTINGS_MODULE=test_project.settings

5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ def run_tests(self):
'sphinx>=1.6.0',
],
'tests': [
'pytest',
'pytest<6',
'pytest-cache',
'pytest-cov',
'pytest-django',
'pytest-flakes',
'pytest-pep8',
'pytest-flake8',
],
},
long_description=long_description,
Expand Down
22 changes: 12 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[tox]
envlist =
py{py,27}-django11,
py35-django{11,21,22},
py36-django{11,21,22},
py37-django{11,21,22},
py38-django{11,21,22},
py35-django{11,22},
py36-django{11,22},
py37-django{11,22,30},
py38-django{11,22,30},
py39-django{11,22,30},
flake8,
docs

Expand All @@ -14,16 +15,17 @@ usedevelop = True
[testenv]
deps =
django11: Django<2.0
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
-r{toxinidir}/test_project/requirements.txt

envlist =
py{py,27}-django11,
py35-django{11,21,22},
py36-django{11,21,22},
py37-django{11,21,22},
py38-django{11,21,22}
py35-django{11,22,30},
py36-django{11,22,30},
py37-django{11,22,30},
py38-django{11,22,30},
py39-django{11,22,30},

commands =
python setup.py test
Expand Down Expand Up @@ -55,7 +57,7 @@ commands =
coveralls

deps =
Django>=2.2,<2.3
Django>=3.0,<3.1
-r{toxinidir}/test_project/requirements.txt
coveralls

0 comments on commit 1a8aa8e

Please sign in to comment.