Éric Araujo added the comment:

A data point: at work I follow Pyramid testing guidelines which tell you not to 
import code under test at module level, but in your test functions, so that if 
you have an error your tests do start and you see the error under the test 
method.  This means that I use mock.patch and not mock.patch.object, as my 
modules are not imported.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to