def post(self): some_json = request.get_json() aws_controller.add_item(some_json)
def test_add_item(table_name, HASH, RANGE, arg1, arg2): # make a dict which corresponds to the db fields: item = {HASH:arg1, RANGE:arg2} # call our aws controller: aws_controller.add_item(table_name, item)