Esempio n. 1
0
 def test_update_group(self):
     with self.app.test_request_context('/'):
         result = groups.update_group(self.group_id,
                                      copy.copy(self.group_params2))
         self.assertEqual(result, None)
         result = groups.get_group(self.group_id)
         self.assertEqual(result, self.group_params2)
Esempio n. 2
0
def _update(name):
    params = request.get_json()
    if not isinstance(params, dict):
        abort(400)
    update_group(name, params)
    return make_response("", 202, [])