Skip to content

Commit 9b6ff66

Browse files
committed
Fixed test with error
1 parent 2c52253 commit 9b6ff66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pdfparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def __init__(self, response, error, *args, **kwargs):
336336
}
337337
}
338338
response = Mock(status_code=500, headers={})
339-
response.text = lambda encoding=None: json.dumps(json.dumps(message).encode("utf-8"))
339+
response.text = lambda encoding=None: json.dumps(message).encode("utf-8")
340340
response.headers["content-type"] = "application/json"
341341
response.content_type = "application/json"
342342
raise FakeHttpResponse(response, FakeErrorOne())

0 commit comments

Comments
 (0)