forked from mollie/mollie-api-python
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for unicode responses from API, and fix the bug that trigger…
…s it. See for details: - psf/requests#1604 - https://github.com/requests/requests/blob/9cfd292da33f3b8324ce2c20e01db0e2f8b9210b/requests/utils.py#L473
- Loading branch information
Tom Hendrikx
committed
Sep 26, 2018
1 parent
3decc4e
commit 355b1db
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"status": 422, | ||
"title": "Unprocessable Entity", | ||
"detail": "Order line 1 is invalid. VAT amount is off. Expected VAT amount to be €3.47 (21.00% over €20.00), got €3.10", | ||
"field": "lines.1.vatAmount", | ||
"_links": { | ||
"documentation": { | ||
"href": "https://docs.mollie.com/guides/handling-errors", | ||
"type": "text/html" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters