Skip to content

Commit

Permalink
Rework pytest calls and silence datetime warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hrichards committed Aug 27, 2024
1 parent 99b639e commit 5c7e618
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[tox]
install_command = pip install {opts} {packages}
envlist = {py36,py38,py39}-{1.11,2.2,3.2,4.2}, flake8

[testenv]
Expand All @@ -9,15 +8,8 @@ setenv =
TOXENV={envname}
XUNIT_FILE=pytest-{envname}.xml
commands =
{envbindir}/pytest \
--cov=capone\
--cov-append \
--cov-report xml:coverage/coverage.xml \
--cov-report html:coverage/ \
--cov-fail-under 100 \
--junitxml=$XUNIT_FILE \
-v -rx \
capone
pytest --cov=capone --cov-fail-under 100 {posargs}

deps =
-r{toxinidir}/requirements-dev.txt
1.11: Django>=1.11,<2
Expand Down Expand Up @@ -62,7 +54,7 @@ deps =
psycopg2>=2.6.2,<2.9

[testenv:flake8]
commands = {envbindir}/flake8 -v capone
commands = flake8 -v capone

[pytest]
DJANGO_SETTINGS_MODULE = capone.tests.settings
Expand Down

0 comments on commit 5c7e618

Please sign in to comment.