From 3af5def406b13bf93f0837fd076199adca978338 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 14 Nov 2019 17:40:47 +0100 Subject: [PATCH] poc: make error_body(reason) return a JSON with extraneous fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We then ensure that the cucumber steps only test the presence of the required fields, not just comparing it byte-wise. Co-authored-by: Roberto Abdelkader Martínez Pérez --- poc/bin/kapow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc/bin/kapow b/poc/bin/kapow index cccb574..5c371fb 100755 --- a/poc/bin/kapow +++ b/poc/bin/kapow @@ -278,7 +278,7 @@ def handle_route(entrypoint, command): def error_body(reason): - return {"reason": reason} + return {"reason": reason, "foo": "bar"} def get_routes(app): async def _get_routes(request):