Re: how to simulate authentication (with authkit) using paste.fixture

2008-08-26 Thread Mark
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

Re: how to simulate authentication (with authkit) using paste.fixture

2008-08-26 Thread Fernando Aramendi
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

Re: how to simulate authentication (with authkit) using paste.fixture

2007-06-12 Thread David Niergarth
On Jun 10, 10:37 am, Alberto Valverde [EMAIL PROTECTED] wrote: This is the TestCase base class I use in the auth. related tests: Thanks for sharing your code Alberto. I've got it working now. Will not test that AuthKit properly authenticates (I test the authentication function I pass to the

Re: how to simulate authentication (with authkit) using paste.fixture

2007-06-12 Thread David Niergarth
On Jun 11, 10:11 am, Agustin Villena [EMAIL PROTECTED] wrote: If I understand, this class may replace de standard TestController from pylons? I ended up changing Alberto's code so it subclasses TestController. class WSGIAppSecurityTestCase(TestController): def __init__(self, *args, **kw):

Re: how to simulate authentication (with authkit) using paste.fixture

2007-06-11 Thread Agustin Villena
If I understand, this class may replace de standard TestController from pylons? Thanks Agustin On 10/06/07, Alberto Valverde [EMAIL PROTECTED] wrote: On Jun 9, 2007, at 12:26 AM, David Niergarth wrote: I have the same question. Also paster shell development.ini has similar

how to simulate authentication (with authkit) using paste.fixture

2007-06-08 Thread Agustín (Cucho) Villena
Sorry if this is a novice question, but I can't find any docs about implementing testing over protected controllers (with authkit) Any example? Thanks Agustin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups