Has anyone experienced problems with running nosetests on contoller,
that is routed to the sub-domain?
Here's what I've got
controller/test.py
class TestController(BaseController):
def get(self):
return True
routing.py
Out of the box
map.connect(':controller/:action/:id')
map.connect(':action/:id', controller='main')
map.connect('*url', controller='template', action='view')
class TestController(TestController):
def test_get(self):
response = self.app.get(url_for(controller='test',
action='get'))
r = response.body
assert_true(r)
This works just fine.
What do i change
map.connect(':controller/:action/:id',
conditions=dict(sub_domain=['my']))
map.connect(':action/:id', controller='main',
conditions=dict(sub_domain=['my']))
map.connect('*url', controller='template', action='view')
change
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---