This is the function I am trying to test. def user_register(): request_data = request.get_json() insert = service_register(request_data)