Re: Testing dynamic templates

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 9:18 PM, Tim Chase <[EMAIL PROTECTED]> wrote: > >> Check out django.contrib.auth.tests.views.py. > > Is there some master index of documentation for "if you want to > test X, see Y.py or http://Z for an example of how to do it"? > where X is any of a number of Django featur

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
On Nov 25, 11:18 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > Check out django.contrib.auth.tests.views.py. > > Is there some master index of documentation for "if you want to > test X, see Y.py or http://Z for an example of how to do it"? > where X is any of a number of Django features such as mo

Re: Testing dynamic templates

2008-11-25 Thread Tim Chase
> Check out django.contrib.auth.tests.views.py. Is there some master index of documentation for "if you want to test X, see Y.py or http://Z for an example of how to do it"? where X is any of a number of Django features such as models, views, templates, middleware, filters, template-tags, form

Re: Testing dynamic templates

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 9:05 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > On Nov 25, 11:01 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: >> On Nov 25, 10:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> >> wrote: >> >> >> >> > On Tue, 2008-11-25 at 20:47 +0900, Russell Keith-Magee wrote: >> > > On

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
On Nov 25, 10:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-11-25 at 20:47 +0900, Russell Keith-Magee wrote: > > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I've got a view which uses a different template depending on an input

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
On Nov 25, 11:01 pm, Julien Phalip <[EMAIL PROTECTED]> wrote: > On Nov 25, 10:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > > On Tue, 2008-11-25 at 20:47 +0900, Russell Keith-Magee wrote: > > > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > > > Hi,

Re: Testing dynamic templates

2008-11-25 Thread Malcolm Tredinnick
On Tue, 2008-11-25 at 20:47 +0900, Russell Keith-Magee wrote: > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I've got a view which uses a different template depending on an input > > parameter. For example: > > > > def my_view(request, theme): > >

Re: Testing dynamic templates

2008-11-25 Thread Julien Phalip
Excellent! Thanks for the tip Russ ;) On Nov 25, 10:47 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I've got a view which uses a different template depending on an input > > parameter. For example:

Re: Testing dynamic templates

2008-11-25 Thread Russell Keith-Magee
On Tue, Nov 25, 2008 at 8:40 PM, Julien Phalip <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got a view which uses a different template depending on an input > parameter. For example: > > def my_view(request, theme): >... >return render_to_response('my_app/%s/page.html' %s theme, {...}) > >

Testing dynamic templates

2008-11-25 Thread Julien Phalip
Hi, I've got a view which uses a different template depending on an input parameter. For example: def my_view(request, theme): ... return render_to_response('my_app/%s/page.html' %s theme, {...}) I would like to write some tests for this view, but I couldn't find any clean way to do so.