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:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user