Hello,

Setting REMOTE_USER is the preferred method. It should make everything work 
with no additional code.

If it doesn't work, the only reason I can think of would be that 
"skip_authentication" is not set during the tests:
http://code.gustavonarea.net/repoze.who-testutil/HowTo/Reconfiguring.html

HTH.

 - Gustavo.


Chris said:
> > Greetings,
> >
> > 
> >
> > I'm using the shabti paster templates for a repoze auth'n'auth set up
> > on Pylons.
> > The templates preconfigure the set up with repoze.who_testutil.
> >
> > 
> >
> > I've been struggling trying to get these tests to run.
> > The instructions for the testutil show that I just need to pass in the
> > REMOTE_USER dictionary in the enviorn:
> > response = self.app.get(url(controller='mycontroller', action='index',
> > extra_environ={'REMOTE_USER':'tester'}))
> >
> > 
> >
> > Someone else on the Pylons bored told me to just create a
> > repoze.what.credentials dictionary with userid, groups, and
> > premissions keys.
> >
> > 
> >
> > I'm chocking here...
> > On my controller I use the helper get_user to get a user instance
> > which keeps showing as None in the error stack...
-- 
Gustavo Narea <xri://=Gustavo>.
| Tech blog: =Gustavo/(+blog)/tech  ~  About me: =Gustavo/about |
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to