def test_get_templates(self):
     with self.app.test_request_context('/'):
         result = templates.get_templates()
         self.assertEqual(result, dict(templates=[self.template_id]))
Example #2
0
def _list():
    return make_response(jsonify(get_templates()))