you should use the extra_environ parameter to simulate a user being
authenticated
app.get(url_for(controller='preferences', action='view_preferences',
name='ger'), extra_environ={'REMOTE_USER':'[EMAIL PROTECTED]<[EMAIL
PROTECTED]>'}
)
cheers
Fer
On Tue, Aug 26, 2008 at 5:45 PM, Mark <[EMAIL PROTECTED]> wrote:
>
> Hey David,
>
> Did you ever find a way to get 'paster shell' to work while using
> authkit across your pylons app?
>
> I'm running into the problem you mention in your message below...
>
> Thanks,
>
> -Mark
>
> On Jun 8 2007, 6:26 pm, David Niergarth <[EMAIL PROTECTED]> wrote:
> > I have the same question. Also
> >
> > pastershelldevelopment.ini
> >
> > has similar problems whenAuthKitauthorization is enabled:
> >
> > paste.fixture.AppError: Bad response: 401 Unauthorized (not 200 OK or
> > 3xx redirect for /_test_vars)
> > 401 Unauthorized
> >
> > Is there a way to pass in authentication details?
> >
> > Thanks for any help,
> >
> > --David
> >
> > On Jun 8, 5:02 pm, "AgustÃn (Cucho) Villena"
> >
> > <[EMAIL PROTECTED]> wrote:
> > > Sorry if this is a novice question, but I can't find any docs about
> > > implementing testing over protected controllers (withauthkit)
> >
> > > Any example?
> >
> > > Thanks
> > > Agustin
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---