-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ValueError for locale + v2 and tests
- Loading branch information
1 parent
f3949d6
commit 09c0fad
Showing
10 changed files
with
5,604 additions
and
11 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
2,743 changes: 2,743 additions & 0 deletions
2,743
...ognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_locale_v2.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
2,736 changes: 2,736 additions & 0 deletions
2,736
...r/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_locale_v2.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...zure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_locale_v2.yaml
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,32 @@ | ||
interactions: | ||
- request: | ||
body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '172' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit) | ||
method: POST | ||
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false | ||
response: | ||
body: | ||
string: '{"error": {"code": "401", "message": "Access denied due to invalid | ||
subscription key or wrong API endpoint. Make sure to provide a valid key for | ||
an active subscription and use a correct regional API endpoint for your resource."}}' | ||
headers: | ||
content-length: | ||
- '224' | ||
date: | ||
- Wed, 07 Oct 2020 17:54:49 GMT | ||
status: | ||
code: 401 | ||
message: PermissionDenied | ||
version: 1 |
27 changes: 27 additions & 0 deletions
27
...i-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_locale_v2.yaml
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,27 @@ | ||
interactions: | ||
- request: | ||
body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Length: | ||
- '172' | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit) | ||
method: POST | ||
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false | ||
response: | ||
body: | ||
string: '{"error": {"code": "401", "message": "Access denied due to invalid | ||
subscription key or wrong API endpoint. Make sure to provide a valid key for | ||
an active subscription and use a correct regional API endpoint for your resource."}}' | ||
headers: | ||
content-length: '224' | ||
date: Wed, 07 Oct 2020 17:54:48 GMT | ||
status: | ||
code: 401 | ||
message: PermissionDenied | ||
url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false | ||
version: 1 |
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
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