Skip to content

Commit

Permalink
tests: cleanup pytest config
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Sep 16, 2018
1 parent 7205428 commit efa1aed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
29 changes: 4 additions & 25 deletions setup.cfg
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -37,7 +37,7 @@ deps =
pip_pre = true

commands =
{posargs:py.test -vv}
pytest {posargs:-vv}

[testenv:spell]
setenv =
Expand Down

0 comments on commit efa1aed

Please sign in to comment.