Héctor Velarde wrote:


[..]

I checked ATContentTypes, for example, and I don't see any tests for some of the very basic ones (ie BaseContent).


Those tests are not in ATCT but Archetypes itself (where Base* is
defined). BaseContent just aggregates a few classes and therefore
isn't tested but BaseObject, BaseSchema, BaseUnit etc are tested.

For your particular use case AT's test_baseobject and in there the
Dummy class (and how it's enabled in utils; mkDummyInContext)
might serve as an example.

HTH,

        Raphael


what do you think, guys? what's the best approach, to test everything on final content types, or to test general things on base class and specifics on final content types?

saludos


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to