poc: make error_body(reason) return a JSON with extraneous fields

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 <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrilloandRoberto Abdelkader Martínez Pérez committed 2019-11-14 17:40:47 +01:00
1 parent 03de51e6ca
commit 3af5def406
1 file changed
+1 -1
+1 -1
View File
@@ -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):