> class MyMockSession(dict): > def save(*args, **kw): > pass > etc, ... > > from pylons import session > session._push_object(MyMockSession(user_id="fooo")) > > You might want to place that in the setUp method and place the > followiing in the tearDown this: > > session._pop_object()
It sounds like it would work, but I get an empty session when I try to pass a regular dict. Is there something that I am missing? (Using pylons 0.9.6.2) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
