• Remember Mailing List

Re: test error

from "Michael A Rowley, MD" on Oct 26, 2006 11:05 AM
Hey Rob,

Well, I did this, and it has at least helped me to figure out what I  
think was going wrong before...

the layers are rather cool, and convenient, once I figured out what  
it all did.  thanks for pointing me in the right direction.  Now I  
have some coding to do to get the tests to run correctly.  Wish I  
knew what was going wrong before....  Provably that the tests were  
originally written to run on Zope 2.8, the change may have been the  
problem.  The layers are definitely going to make things easier.

Many thanks,

Michael




On Oct 23, 2006, at 2:13 PM, Rob Miller wrote:

> the remember test setup has been refactored to use layers.  this is  
> more efficient that using afterSetUp, b/c you can have your custom  
> initialization stuff only run once for the entire test suite,  
> instead of rerunning it for every test.
>
> i'd recommend you create your own layer class, subclassing  
> Products.remember.tests.base.RememberProfileLayer.  create a setUp  
> class method (use the base class as a model), and do your setup in  
> there, committing the transaction when it's done.  then specify a  
> "layer=YourCustomLayerClass" in your torchTestCase.
>
> try that, let us know if it improves things for you.
>
> -r


Return to date view: threaded or flat