Currently responses.add and the expected results both come from the same file. Which, later in the assert item in resp.json() will always match exactly, even if the loaded file is not the intended file.
For example, I can load translate_200.json and still pass a 403 test since the response has a status of 403 and the file matches expected.
Currently
responses.add
and the expected results both come from the same file. Which, later in theassert item in resp.json()
will always match exactly, even if the loaded file is not the intended file.For example, I can load translate_200.json and still pass a 403 test since the response has a status of 403 and the file matches expected.