Skip to content
Browse files
[Server] test: add response content in message when it's not an image
  • Loading branch information
rldhont committed Sep 19, 2017
1 parent 899e872 commit bb61db2e8dd20b1b08d3ef849f59e9b8b98a1865
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/
@@ -168,7 +168,7 @@ def _img_diff(self, image, control_image, max_diff, max_size_diff=QSize()):
def _img_diff_error(self, response, headers, image, max_diff=10, max_size_diff=QSize()):
headers.get("Content-Type"), "image/png",
"Content type is wrong: %s" % headers.get("Content-Type"))
"Content type is wrong: %s\n%s" % (headers.get("Content-Type"), response))

test, report = self._img_diff(response, image, max_diff, max_size_diff)

0 comments on commit bb61db2

Please sign in to comment.