Issue153

Title config.scan() and test dependencies
Priority feature Status chatting
Superseder Nosy List chrisw
Assigned To Topics

Created on 2010-07-02.05:05:42 by chrisw, last changed 2010-07-02.09:30:48 by chrism.

Messages
msg421 (view) Author: chrism Date: 2010-07-02.09:30:47
I think having some skip parameter to scan (maybe a regex or something) is 
reasonable, but FWIW I never see this is because my package's tests typically 
don't import anything except "unittest" at module scope.  All the imports are done 
in the test methods themselves.  See 
http://palladion.com/home/tseaver/obzervationz/2008/unit_testing_notes-20080724 
for a rationale.
msg420 (view) Author: chrisw Date: 2010-07-02.05:05:41
It should be possible to get config.scan() to exclude my test folders.

My tests have package dependencies not normally needed, so the scan 
fails with ImportErrors for those packages that are *only* test 
dependencies...

cheers,

Chris
History
Date User Action Args
2010-07-02 09:30:48 chrism set status: unread -> chatting
messages: + msg421
2010-07-02 05:05:42 chrisw create