[Grok-dev] tests for pluggable templates?

Lennart Regebro regebro at gmail.com
Fri Oct 26 09:04:48 EDT 2007


On 10/26/07, Brandon Craig Rhodes <brandon at rhodesmill.org> wrote:
> I wanted to experiment with the code in the "regebro-guido-templates"
> branch; for example, to learn more about __grok_module__ and whether
> it can be avoided.  I will need to know whether each change I make
> breaks the pluggable templates or not.  But looking through the
> branch, I don't find any unit or functional tests that exercise the
> pluggable template logic, so I will have no way of knowing whether I
> break them or not!

Well, each test that uses any sort of template uses the pluggable
template logic, since all templates are plugged. ;)

What is lacking in tests is tests for the new namespace() methods,
though. There's not tests for that.

> Have I not looked in the right places for the tests?  And, if they are
> indeed absent, would it be okay if I started adding some functional
> tests to the branch with some commits of my own?

More tests doesn't hurt, so if you want to or feel that a specific
test is lacking, go ahead.

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Grok-dev mailing list