Skip to content

Commit bb61db2

Browse files
committedSep 19, 2017
[Server] test: add response content in message when it's not an image
1 parent 899e872 commit bb61db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/src/python/test_qgsserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _img_diff(self, image, control_image, max_diff, max_size_diff=QSize()):
168168
def _img_diff_error(self, response, headers, image, max_diff=10, max_size_diff=QSize()):
169169
self.assertEqual(
170170
headers.get("Content-Type"), "image/png",
171-
"Content type is wrong: %s" % headers.get("Content-Type"))
171+
"Content type is wrong: %s\n%s" % (headers.get("Content-Type"), response))
172172

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

0 commit comments

Comments
 (0)
Please sign in to comment.