Changeset - 7187c1707eda
[Not reviewed]
default
2 1 2
Thomas De Schampheleire - 11 years ago 2015-05-14 21:42:26
thomas.de.schampheleire@gmail.com
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.
3 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/scripts/manual_test_concurrency.py
Show inline comments
 
file renamed from kallithea/tests/scripts/test_concurency.py to kallithea/tests/scripts/manual_test_concurrency.py
kallithea/tests/scripts/manual_test_crawler.py
Show inline comments
 
file renamed from kallithea/tests/scripts/test_crawler.py to kallithea/tests/scripts/manual_test_crawler.py
setup.cfg
Show inline comments
 
@@ -8,13 +8,14 @@ verbose = True
 
verbosity = 2
 
with-pylons = test.ini
 
detailed-errors = 1
 
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
 
directory = kallithea/i18n
 
statistics = true
 

	
0 comments (0 inline, 0 general)