On Sep 6, 11:30 pm, Didip Kerabat <[email protected]> wrote:
> I set several tmpl_context attributes (in the form of c.abc = 'foo' or c.xyz
> = datetime.utcnow()) inside base.py __init__()
>
> How can I mock/mimic the same setup on TestController object?

I use the paste.testing env flag to set up context variables in
base.py's BaseController.__call__()

e.g.

if request.environ.get('paste.testing', False):
  # do test-related stuff

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to