[Product-Developers] turn off or invalidate view.memoize in tests

Héctor Velarde hector.velarde at gmail.com
Thu Jun 6 23:08:59 UTC 2013


On 06/06/13 16:24, Guido Stevens wrote:
> What I usually do in that case is extract the actual method to a
> "private" underscore method without caching, but keep the memoizer on
> the "public" method that only calls the private method. And then
> unittest the private method, while calling the public method in
> production code. Ugly but effective.

HV>  I thinks this is the best approach; thanks...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3758 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20130606/b367db79/attachment-0001.p7s>


More information about the Product-Developers mailing list