Hello I'm writing a library of helper classes/functions to ease creation of custom template tags. So a natural doctest (or an example in the documentation) goes like this: define a compiler function and Node class with my helpers, register them with a tag library, define a bunch of template strings with these tags, then render these templates and check whether the output is ok. However, there is a problem. For this to work, I need to somehow tell my templates where to find the tags. I can not use the {% load %} tag (because the tags being tested are not in a module), so I need to somehow tell the Template object where to look. I looked through django.template and there seems to be no way to do that (libraries are added to the template's Parser object which is deeply incapsulated).
So, my question is: how do people test such things? -- Alexander Khodyrev --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---