Hi there Considering this failed assertion where a django test request failed:
``` > assert r.status_code == 201 E assert 400 == 201 E -400 E +201 ``` This output isn't terribly useful at present. We'd like to automatically dump the request body (`r.content`) in the output, wherever it's a django response object, to aid debugging. I see the `pytest_assertrepr_compare` hook gets passed the top-level objects and the operator for writing a custom message. However if I'm reading it right there's no way to access the containing expression there (i.e. `r`) and treat it specially. Is there a way to do this using pytest's hooks? Cheers Craig de Stigter
_______________________________________________ pytest-dev mailing list pytest-dev@python.org https://mail.python.org/mailman/listinfo/pytest-dev