[Zope-CMF] Re: [dev] failing tests and other unit test issues
yuppie
y.2005- at wcm-solutions.de
Mon Apr 4 14:21:49 EDT 2005
Sidnei da Silva wrote:
> | 2.) adding BBBTransaction to CMFCore.tests.base.utils and using this in
> | tests:
> |
> | try:
> | import transaction
> | except ImportError:
> | # BBB: for Zope 2.7
> | from Products.CMFCore.tests.base.utils import transaction
>
> Why not just import from CMFCore.test.base.utils straight?
>
Good question ;)
All I know is that
- CMF uses that pattern in all test files
- 'Products.CMFCore.foo' seems to work with any testing setup
- with my setup 'CMFCore.foo' doesn't work if I run tests outside test.py
Cheers, Yuppie
More information about the Zope-CMF
mailing list