Mercurial > kallithea
diff setup.cfg @ 5145:7187c1707eda
tests: restrict pytest test collection to kallithea/tests
When the kallithea root directory contains a populated virtualenv, pytest
would also collect tests in python packages installed there.
Restrict the tests to be considered to any test_*.py file inside
kallithea/tests.
Additionally, by renaming unwanted test files in kallithea/tests/scripts to
_not_ match this pattern, we can completely get rid of the 'norecursedirs'
option.
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> |
---|---|
date | Thu, 14 May 2015 21:42:26 +0200 |
parents | 552e47cd0f36 |
children | 08ad393e6866 |
line wrap: on
line diff
--- a/setup.cfg Tue May 12 23:32:41 2015 +0200 +++ b/setup.cfg Thu May 14 21:42:26 2015 +0200 @@ -11,7 +11,8 @@ nologcapture = 1 [pytest] -norecursedirs = .* *.egg kallithea/tests/scripts +# only look for tests in kallithea/tests +python_files = kallithea/tests/**/test_*.py [compile_catalog] domain = kallithea