comparison 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
comparison
equal deleted inserted replaced
5144:7a5db341a942 5145:7187c1707eda
9 with-pylons = test.ini 9 with-pylons = test.ini
10 detailed-errors = 1 10 detailed-errors = 1
11 nologcapture = 1 11 nologcapture = 1
12 12
13 [pytest] 13 [pytest]
14 norecursedirs = .* *.egg kallithea/tests/scripts 14 # only look for tests in kallithea/tests
15 python_files = kallithea/tests/**/test_*.py
15 16
16 [compile_catalog] 17 [compile_catalog]
17 domain = kallithea 18 domain = kallithea
18 directory = kallithea/i18n 19 directory = kallithea/i18n
19 statistics = true 20 statistics = true