how to mock test redirect in gluon

16 views
Skip to first unread message

Nguyen Huy

unread,
Oct 19, 2014, 11:26:26 AM10/19/14
to web...@googlegroups.com
Dear all




i want to mock test  function in Gluon like Redirect that my controllers/default.py is using


So I want to do @mock.path( default.gluon.http.redirect)  . but i cant because :*** NameError: name 'auth' is not defined


Im running my test by: python web2py.py -S app -M -R applications/app/unittest/unittest.py


am i missing smth?

Thank a lots





Reply all
Reply to author
Forward
0 new messages