Thanks Chris. This /is/ what I am doing --
def DummyRequest():
req = testing.DummyRequest()
req.session = {} # dummy beaker session
return req
But would you consider adding the dummy session to the module?
Jerry
On Dec 9, 9:41 pm, Chris McDonough <[email protected]> wrote:
> You might get away with request.session = {}
>
> - C
>
> On Thu, 2010-12-09 at 05:35 -0800, jerry wrote:
> > Since I'm using pyramid_beaker session, my unittest fails --
>
> > ...
> > session = request.session
> > AttributeError: 'DummyRequest' object has no attribute 'session'
>
> > What best-practice solution would you recommend?
>
> > Thanks in advance.
>
> > Jerry
>
>
--
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.