Re: Testing template context processors

2015-03-17 Thread Gergely Polonkai
Hello, My processor sets some template variables based on request.user and some DB/redis query results, which are displayed on each page on a header bar, so I only need to create a mocked request with user set to something (AnonymousUser or a valid user object). I'm already using Mock[2] for

Re: Testing template context processors

2015-03-17 Thread Carl Meyer
Hi Gergely, On 03/17/2015 10:52 AM, Gergely Polonkai wrote: > I wrote a context processor which makes some global variables of mine > available for templates. I cannot find a good (cough… any) article on > how to test such processors. Could you give me some directions on where > to start with

Testing template context processors

2015-03-17 Thread Gergely Polonkai
Hello, I wrote a context processor which makes some global variables of mine available for templates. I cannot find a good (cough… any) article on how to test such processors. Could you give me some directions on where to start with writing one? Thanks in advance! Best, Gergely -- You