diff --git a/setup.cfg b/setup.cfg index 694845f4..49847340 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,34 +5,13 @@ universal = 1 max-line-length = 140 exclude = tests/*,*/migrations/*,*/south_migrations/* -[pytest] -# using the deprecated name instead of [tool:pytest] cause we test with older pytest versions -norecursedirs = - .git - .tox - .env - venv - dist - build - south_migrations - migrations - example -python_files = - test_*.py - *_test.py - tests.py +[tool:pytest] +testpaths = tests +python_files = test_*.py addopts = - -rxEfsw + -ra --strict - --ignore=docs/conf.py - --ignore=setup.py - --ignore=src - --ignore=ci - --ignore=.eggs - --doctest-modules - --doctest-glob=\*.rst --tb=short - -p pytester [isort] force_single_line=True diff --git a/tox.ini b/tox.ini index 1d88b75d..3c55d742 100644 --- a/tox.ini +++ b/tox.ini @@ -37,7 +37,7 @@ deps = pip_pre = true commands = - {posargs:py.test -vv} + pytest {posargs:-vv} [testenv:spell] setenv =