[PATCH] tests: restrict pytest test collection to kallithea/tests
msabramo at gmail.com
Wed May 13 16:17:02 EDT 2015
Yeah, that seems reasonable.
On Wed, May 13, 2015 at 12:34 PM, Mads Kiilerich <mads at kiilerich.com> wrote:
> On 05/13/2015 09:26 PM, Thomas De Schampheleire wrote:
>> # HG changeset patch
>> # User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
>> # Date 1431544206 -7200
>> # Wed May 13 21:10:06 2015 +0200
>> # Node ID edce9d365e2d6711e1336ee58a1b20520d8283ae
>> # Parent e19127e4040d1817bbec77118ca7377644f76a64
>> 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. With this change, the 'norecursedirs' value of .* and
>> *.egg are no longer relevant.
> Marc, do you agree with this?
> Should we also just rename the test_ files in the scripts folder and get
> rid of the norecurse option?
>> diff --git a/setup.cfg b/setup.cfg
>> --- a/setup.cfg
>> +++ b/setup.cfg
>> @@ -11,7 +11,8 @@ detailed-errors = 1
>> nologcapture = 1
>> -norecursedirs = .* *.egg kallithea/tests/scripts
>> +norecursedirs = kallithea/tests/scripts
>> +python_files = kallithea/tests/**/test_*.py
>> domain = kallithea
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the kallithea-general