If the server responds with a JSON payload without also providing the appropriate content type, response_json_paths assertions result in a cryptic error:
left hand side json path […] cannot match None
I believe this this was a design decision early on (IIRC), expecting well-behaved servers - thus defying Postel. In my case, I have no control over the server in question, so there's no reasonable way for me to use Gabbi here.
If the server responds with a JSON payload without also providing the appropriate content type,
response_json_pathsassertions result in a cryptic error:I believe this this was a design decision early on (IIRC), expecting well-behaved servers - thus defying Postel. In my case, I have no control over the server in question, so there's no reasonable way for me to use Gabbi here.