#1945: Move TestController to tg.testutil
-------------------------+--------------------------------------------------
Reporter: Gustavo | Owner: mramm
Type: enhancement | Status: new
Priority: high | Milestone: 2.0b1
Component: TurboGears | Version: trunk
Severity: major | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by jorge.vargas):
I'm not sure if this is a good idea. I got an application where every page
is private so in my tests I added the following:
So now I'm -1 on this. As doing what I did below will imply I need to
rewrite init and go look for what it does at the TG level.
{{{
class TestController(object):
def __init__(self, *args, **kwargs):
wsgiapp = loadapp('config:test.ini', relative_to=conf_dir)
self.app = webtest.TestApp(wsgiapp)
response =
self.app.get('/login_handler?login=jorge&password=jorge')
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/1945#comment:6>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---