Ejemplo n.º 1
0
def routes():
    """List routes"""
    for endpoint, methods, url in util.list_routes(app):
        print("{:50s} {:20s} {}".format(endpoint, methods, url))
Ejemplo n.º 2
0
 def test_has_questionnaire_api(self):
     for endpoint, methods, rule in util.list_routes(self.app):
         if rule.startswith('/api/questionnaire/'):
             break
     else:
         raise AssertionError("No rule for /api/questionnaire/")
Ejemplo n.º 3
0
def routes():
    """List routes"""
    for endpoint, methods, url in util.list_routes(app):
        print("{:50s} {:20s} {}".format(endpoint, methods, url))