Re: best ways to test ?

2009-04-09 Thread Fernando Aramendi
selenium? for integration you could try using the python client driver http://seleniumhq.org/projects/remote-control/languages/python.html On Wed, Apr 8, 2009 at 12:25 PM, Jonathan Vanasco wrote: > > I've found unit-testing to be not worth it -- it always passes, but I > find tons of errors on th

Re: Authkit - custom error message

2008-09-22 Thread Fernando Aramendi
I believe you need to implement you own signin controller to do that. def signin(self): username = request.params['username'] password = request.params['password'] users = GolotofUsersFromDatabase() user = users.user_by_username(username) url = '/'

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 PR

Re: Where should I put code shared by multiple controllers?

2008-07-02 Thread Fernando Aramendi
what about reusing SQLAlchemy queries? do you put them as class methods in domain classes, repositories/daos, controllers? On Wed, Jul 2, 2008 at 7:10 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > > On Wed, Jul 2, 2008 at 2:38 PM, johnnyice <[EMAIL PROTECTED]> wrote: > > > > I have code that accesses