Skip to content

Commit

Permalink
[Server] test: add response content in message when it's not an image
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Sep 19, 2017
1 parent 899e872 commit bb61db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver.py
Expand Up @@ -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()):
self.assertEqual(
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)

Expand Down

0 comments on commit bb61db2

Please sign in to comment.