Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-azure-ai-formrecognizer for
openSUSE:Factory checked in at 2024-04-12 17:34:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-ai-formrecognizer (Old)
and /work/SRC/openSUSE:Factory/.python-azure-ai-formrecognizer.new.26366
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-azure-ai-formrecognizer"
Fri Apr 12 17:34:44 2024 rev:13 rq:1166918 version:3.3.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-azure-ai-formrecognizer/python-azure-ai-formrecognizer.changes
2024-04-07 22:05:27.597402583 +0200
+++
/work/SRC/openSUSE:Factory/.python-azure-ai-formrecognizer.new.26366/python-azure-ai-formrecognizer.changes
2024-04-12 17:38:35.448161965 +0200
@@ -1,0 +2,8 @@
+Thu Apr 11 09:42:53 UTC 2024 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 3.3.3
+ + For detailed information about changes see the
+ CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------
Old:
----
azure-ai-formrecognizer-3.3.2.tar.gz
New:
----
azure-ai-formrecognizer-3.3.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-azure-ai-formrecognizer.spec ++++++
--- /var/tmp/diff_new_pack.hYin89/_old 2024-04-12 17:38:36.980218389 +0200
+++ /var/tmp/diff_new_pack.hYin89/_new 2024-04-12 17:38:37.008219420 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-azure-ai-formrecognizer
-Version: 3.3.2
+Version: 3.3.3
Release: 0
Summary: Microsoft Azure Form Recognizer Client Library for Python
License: MIT
++++++ azure-ai-formrecognizer-3.3.2.tar.gz ->
azure-ai-formrecognizer-3.3.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-ai-formrecognizer-3.3.2/CHANGELOG.md
new/azure-ai-formrecognizer-3.3.3/CHANGELOG.md
--- old/azure-ai-formrecognizer-3.3.2/CHANGELOG.md 2023-11-07
21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/CHANGELOG.md 2024-04-10
00:32:12.000000000 +0200
@@ -1,5 +1,12 @@
# Release History
+## 3.3.3 (2024-04-09)
+
+### Other Changes
+- Added support for Python 3.12.
+- Python 3.7 is no longer supported. Please use Python version 3.8 or later.
+- Changed the default polling interval from 5s to 1s.
+
## 3.3.2 (2023-11-07)
### Bugs Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-ai-formrecognizer-3.3.2/PKG-INFO
new/azure-ai-formrecognizer-3.3.3/PKG-INFO
--- old/azure-ai-formrecognizer-3.3.2/PKG-INFO 2023-11-07 21:50:34.802127100
+0100
+++ new/azure-ai-formrecognizer-3.3.3/PKG-INFO 2024-04-10 00:33:46.946604000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-ai-formrecognizer
-Version: 3.3.2
+Version: 3.3.3
Summary: Microsoft Azure Form Recognizer Client Library for Python
Home-page: https://github.com/Azure/azure-sdk-for-python
Author: Microsoft Corporation
@@ -11,18 +11,18 @@
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
-Requires-Python: >=3.7
+Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
-Requires-Dist: azure-core<2.0.0,>=1.23.0
+Requires-Dist: azure-core>=1.23.0
Requires-Dist: msrest>=0.6.21
-Requires-Dist: azure-common~=1.1
+Requires-Dist: azure-common>=1.1
Requires-Dist: typing-extensions>=4.0.1
# Azure Form Recognizer client library for Python
@@ -45,11 +45,16 @@
| [Samples][python-fr-samples]
+## _Disclaimer_
+
+_This package supports the following service API versions: 2.0, 2.1,
2022-08-31 and 2023-07-31. Service API version 2023-10-31-preview and later are
supported in package `azure-ai-documentintelligence`. Please refer this
[doc][fr_to_di_migration_guideline] for migration details._
+
+
## Getting started
### Prerequisites
-* Python 3.7 or later is required to use this package.
+* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription][azure_subscription] and a
[Cognitive Services or Form Recognizer resource][FR_or_CS_resource] to use
this package.
@@ -780,6 +785,7 @@
[fr-build-training-set]: https://aka.ms/azsdk/formrecognizer/buildtrainingset
[fr-models]: https://aka.ms/azsdk/formrecognizer/models
[fr-errors]: https://aka.ms/azsdk/formrecognizer/errors
+[fr_to_di_migration_guideline]:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/MIGRATION_GUIDE.md
[azure_core_ref_docs]: https://aka.ms/azsdk/python/core/docs
[azure_core_exceptions]:
https://aka.ms/azsdk/python/core/docs#module-azure.core.exceptions
@@ -818,6 +824,13 @@
# Release History
+## 3.3.3 (2024-04-09)
+
+### Other Changes
+- Added support for Python 3.12.
+- Python 3.7 is no longer supported. Please use Python version 3.8 or later.
+- Changed the default polling interval from 5s to 1s.
+
## 3.3.2 (2023-11-07)
### Bugs Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-ai-formrecognizer-3.3.2/README.md
new/azure-ai-formrecognizer-3.3.3/README.md
--- old/azure-ai-formrecognizer-3.3.2/README.md 2023-11-07 21:49:47.000000000
+0100
+++ new/azure-ai-formrecognizer-3.3.3/README.md 2024-04-10 00:32:12.000000000
+0200
@@ -18,11 +18,16 @@
| [Samples][python-fr-samples]
+## _Disclaimer_
+
+_This package supports the following service API versions: 2.0, 2.1,
2022-08-31 and 2023-07-31. Service API version 2023-10-31-preview and later are
supported in package `azure-ai-documentintelligence`. Please refer this
[doc][fr_to_di_migration_guideline] for migration details._
+
+
## Getting started
### Prerequisites
-* Python 3.7 or later is required to use this package.
+* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription][azure_subscription] and a
[Cognitive Services or Form Recognizer resource][FR_or_CS_resource] to use
this package.
@@ -753,6 +758,7 @@
[fr-build-training-set]: https://aka.ms/azsdk/formrecognizer/buildtrainingset
[fr-models]: https://aka.ms/azsdk/formrecognizer/models
[fr-errors]: https://aka.ms/azsdk/formrecognizer/errors
+[fr_to_di_migration_guideline]:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/MIGRATION_GUIDE.md
[azure_core_ref_docs]: https://aka.ms/azsdk/python/core/docs
[azure_core_exceptions]:
https://aka.ms/azsdk/python/core/docs#module-azure.core.exceptions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/py.typed
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/py.typed
---
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/py.typed
1970-01-01 01:00:00.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/py.typed
2024-04-10 00:32:12.000000000 +0200
@@ -0,0 +1 @@
+# Marker file for PEP 561.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2022_08_31/py.typed
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2022_08_31/py.typed
---
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2022_08_31/py.typed
1970-01-01 01:00:00.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2022_08_31/py.typed
2024-04-10 00:32:12.000000000 +0200
@@ -0,0 +1 @@
+# Marker file for PEP 561.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2023_07_31/py.typed
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2023_07_31/py.typed
---
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2023_07_31/py.typed
1970-01-01 01:00:00.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2023_07_31/py.typed
2024-04-10 00:32:12.000000000 +0200
@@ -0,0 +1 @@
+# Marker file for PEP 561.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2_0/py.typed
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2_0/py.typed
---
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2_0/py.typed
1970-01-01 01:00:00.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2_0/py.typed
2024-04-10 00:32:12.000000000 +0200
@@ -0,0 +1 @@
+# Marker file for PEP 561.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2_1/py.typed
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2_1/py.typed
---
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_generated/v2_1/py.typed
1970-01-01 01:00:00.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_generated/v2_1/py.typed
2024-04-10 00:32:12.000000000 +0200
@@ -0,0 +1 @@
+# Marker file for PEP 561.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_helpers.py
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_helpers.py
--- old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_helpers.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_helpers.py
2024-04-10 00:32:12.000000000 +0200
@@ -11,7 +11,7 @@
from azure.core.exceptions import HttpResponseError
-POLLING_INTERVAL = 5
+POLLING_INTERVAL = 1
COGNITIVE_KEY_HEADER = "Ocp-Apim-Subscription-Key"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_version.py
new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_version.py
--- old/azure-ai-formrecognizer-3.3.2/azure/ai/formrecognizer/_version.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/azure/ai/formrecognizer/_version.py
2024-04-10 00:32:12.000000000 +0200
@@ -3,4 +3,4 @@
# Licensed under the MIT License.
# ------------------------------------
-VERSION = "3.3.2"
+VERSION = "3.3.3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure_ai_formrecognizer.egg-info/PKG-INFO
new/azure-ai-formrecognizer-3.3.3/azure_ai_formrecognizer.egg-info/PKG-INFO
--- old/azure-ai-formrecognizer-3.3.2/azure_ai_formrecognizer.egg-info/PKG-INFO
2023-11-07 21:50:34.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/azure_ai_formrecognizer.egg-info/PKG-INFO
2024-04-10 00:33:46.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-ai-formrecognizer
-Version: 3.3.2
+Version: 3.3.3
Summary: Microsoft Azure Form Recognizer Client Library for Python
Home-page: https://github.com/Azure/azure-sdk-for-python
Author: Microsoft Corporation
@@ -11,18 +11,18 @@
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
-Requires-Python: >=3.7
+Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
-Requires-Dist: azure-core<2.0.0,>=1.23.0
+Requires-Dist: azure-core>=1.23.0
Requires-Dist: msrest>=0.6.21
-Requires-Dist: azure-common~=1.1
+Requires-Dist: azure-common>=1.1
Requires-Dist: typing-extensions>=4.0.1
# Azure Form Recognizer client library for Python
@@ -45,11 +45,16 @@
| [Samples][python-fr-samples]
+## _Disclaimer_
+
+_This package supports the following service API versions: 2.0, 2.1,
2022-08-31 and 2023-07-31. Service API version 2023-10-31-preview and later are
supported in package `azure-ai-documentintelligence`. Please refer this
[doc][fr_to_di_migration_guideline] for migration details._
+
+
## Getting started
### Prerequisites
-* Python 3.7 or later is required to use this package.
+* Python 3.8 or later is required to use this package.
* You must have an [Azure subscription][azure_subscription] and a
[Cognitive Services or Form Recognizer resource][FR_or_CS_resource] to use
this package.
@@ -780,6 +785,7 @@
[fr-build-training-set]: https://aka.ms/azsdk/formrecognizer/buildtrainingset
[fr-models]: https://aka.ms/azsdk/formrecognizer/models
[fr-errors]: https://aka.ms/azsdk/formrecognizer/errors
+[fr_to_di_migration_guideline]:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/MIGRATION_GUIDE.md
[azure_core_ref_docs]: https://aka.ms/azsdk/python/core/docs
[azure_core_exceptions]:
https://aka.ms/azsdk/python/core/docs#module-azure.core.exceptions
@@ -818,6 +824,13 @@
# Release History
+## 3.3.3 (2024-04-09)
+
+### Other Changes
+- Added support for Python 3.12.
+- Python 3.7 is no longer supported. Please use Python version 3.8 or later.
+- Changed the default polling interval from 5s to 1s.
+
## 3.3.2 (2023-11-07)
### Bugs Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure_ai_formrecognizer.egg-info/SOURCES.txt
new/azure-ai-formrecognizer-3.3.3/azure_ai_formrecognizer.egg-info/SOURCES.txt
---
old/azure-ai-formrecognizer-3.3.2/azure_ai_formrecognizer.egg-info/SOURCES.txt
2023-11-07 21:50:34.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure_ai_formrecognizer.egg-info/SOURCES.txt
2024-04-10 00:33:46.000000000 +0200
@@ -28,6 +28,7 @@
azure/ai/formrecognizer/_generated/_operations_mixin.py
azure/ai/formrecognizer/_generated/_version.py
azure/ai/formrecognizer/_generated/models.py
+azure/ai/formrecognizer/_generated/py.typed
azure/ai/formrecognizer/_generated/aio/__init__.py
azure/ai/formrecognizer/_generated/aio/_configuration.py
azure/ai/formrecognizer/_generated/aio/_form_recognizer_client.py
@@ -37,6 +38,7 @@
azure/ai/formrecognizer/_generated/v2022_08_31/_form_recognizer_client.py
azure/ai/formrecognizer/_generated/v2022_08_31/_patch.py
azure/ai/formrecognizer/_generated/v2022_08_31/_vendor.py
+azure/ai/formrecognizer/_generated/v2022_08_31/py.typed
azure/ai/formrecognizer/_generated/v2022_08_31/aio/__init__.py
azure/ai/formrecognizer/_generated/v2022_08_31/aio/_configuration.py
azure/ai/formrecognizer/_generated/v2022_08_31/aio/_form_recognizer_client.py
@@ -57,6 +59,7 @@
azure/ai/formrecognizer/_generated/v2023_07_31/_form_recognizer_client.py
azure/ai/formrecognizer/_generated/v2023_07_31/_patch.py
azure/ai/formrecognizer/_generated/v2023_07_31/_vendor.py
+azure/ai/formrecognizer/_generated/v2023_07_31/py.typed
azure/ai/formrecognizer/_generated/v2023_07_31/aio/__init__.py
azure/ai/formrecognizer/_generated/v2023_07_31/aio/_configuration.py
azure/ai/formrecognizer/_generated/v2023_07_31/aio/_form_recognizer_client.py
@@ -80,6 +83,7 @@
azure/ai/formrecognizer/_generated/v2_0/_form_recognizer_client.py
azure/ai/formrecognizer/_generated/v2_0/_patch.py
azure/ai/formrecognizer/_generated/v2_0/_vendor.py
+azure/ai/formrecognizer/_generated/v2_0/py.typed
azure/ai/formrecognizer/_generated/v2_0/aio/__init__.py
azure/ai/formrecognizer/_generated/v2_0/aio/_configuration.py
azure/ai/formrecognizer/_generated/v2_0/aio/_form_recognizer_client.py
@@ -100,6 +104,7 @@
azure/ai/formrecognizer/_generated/v2_1/_form_recognizer_client.py
azure/ai/formrecognizer/_generated/v2_1/_patch.py
azure/ai/formrecognizer/_generated/v2_1/_vendor.py
+azure/ai/formrecognizer/_generated/v2_1/py.typed
azure/ai/formrecognizer/_generated/v2_1/aio/__init__.py
azure/ai/formrecognizer/_generated/v2_1/aio/_configuration.py
azure/ai/formrecognizer/_generated/v2_1/aio/_form_recognizer_client.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/azure_ai_formrecognizer.egg-info/requires.txt
new/azure-ai-formrecognizer-3.3.3/azure_ai_formrecognizer.egg-info/requires.txt
---
old/azure-ai-formrecognizer-3.3.2/azure_ai_formrecognizer.egg-info/requires.txt
2023-11-07 21:50:34.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/azure_ai_formrecognizer.egg-info/requires.txt
2024-04-10 00:33:46.000000000 +0200
@@ -1,4 +1,4 @@
-azure-core<2.0.0,>=1.23.0
+azure-core>=1.23.0
msrest>=0.6.21
-azure-common~=1.1
+azure-common>=1.1
typing-extensions>=4.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-ai-formrecognizer-3.3.2/pyproject.toml
new/azure-ai-formrecognizer-3.3.3/pyproject.toml
--- old/azure-ai-formrecognizer-3.3.2/pyproject.toml 2023-11-07
21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/pyproject.toml 2024-04-10
00:32:12.000000000 +0200
@@ -1,3 +1,5 @@
[tool.azure-sdk-build]
pyright = false
type_check_samples = false
+pylint = false
+strict_sphinx = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-ai-formrecognizer-3.3.2/samples/README.md
new/azure-ai-formrecognizer-3.3.3/samples/README.md
--- old/azure-ai-formrecognizer-3.3.2/samples/README.md 2023-11-07
21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/samples/README.md 2024-04-10
00:32:12.000000000 +0200
@@ -80,7 +80,7 @@
Please see the samples [here][v3.0.0-samples-tag].
## Prerequisites
-* Python 3.7 or later is required to use this package
+* Python 3.8 or later is required to use this package
* You must have an [Azure subscription][azure_subscription] and an
[Azure Form Recognizer account][azure_form_recognizer_account] to run these
samples.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/samples/v3.2_and_later/async_samples/sample_analyze_addon_barcodes_async.py
new/azure-ai-formrecognizer-3.3.3/samples/v3.2_and_later/async_samples/sample_analyze_addon_barcodes_async.py
---
old/azure-ai-formrecognizer-3.3.2/samples/v3.2_and_later/async_samples/sample_analyze_addon_barcodes_async.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/samples/v3.2_and_later/async_samples/sample_analyze_addon_barcodes_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -84,7 +84,7 @@
# Specify which add-on capabilities to enable.
with open(path_to_sample_documents, "rb") as f:
poller = await document_analysis_client.begin_analyze_document(
- "prebuilt-layout", document=f,
features=[AnalysisFeature.barcode/QR code]
+ "prebuilt-layout", document=f,
features=[AnalysisFeature.BARCODES]
)
result = await poller.result()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/samples/v3.2_and_later/async_samples/sample_send_request_async.py
new/azure-ai-formrecognizer-3.3.3/samples/v3.2_and_later/async_samples/sample_send_request_async.py
---
old/azure-ai-formrecognizer-3.3.2/samples/v3.2_and_later/async_samples/sample_send_request_async.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/samples/v3.2_and_later/async_samples/sample_send_request_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -35,53 +35,52 @@
endpoint=endpoint, credential=AzureKeyCredential(key)
)
- # The `send_request` method can send custom HTTP requests that share the
client's existing pipeline,
- # while adding convenience for endpoint construction and service API
versioning.
- # Now let's use the `send_request` method to make a resource details
fetching request.
- # The URL of the request can be relative (your endpoint is the default
base URL),
- # and the API version of your client will automatically be used for the
request.
- request = HttpRequest(method="GET", url="info")
async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(
- f"Our resource has {response_body['customDocumentModels']['count']}
custom models, "
- f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
- f"The quota limit for custom neural document models is
{response_body['customNeuralDocumentModelBuilds']['quota']} and the resource
has"
- f"used {response_body['customNeuralDocumentModelBuilds']['used']}. The
resource quota will reset on
{response_body['customNeuralDocumentModelBuilds']['quotaResetDateTime']}"
- )
-
- # pass with absolute url and override the API version
- request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/info?api-version=2022-08-31")
- async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(
- f"Our resource has {response_body['customDocumentModels']['count']}
custom models, "
- f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
- f"The quota limit for custom neural document models is
{response_body['customNeuralDocumentModelBuilds']['quota']} and the resource
has"
- f"used {response_body['customNeuralDocumentModelBuilds']['used']}. The
resource quota will reset on
{response_body['customNeuralDocumentModelBuilds']['quotaResetDateTime']}"
- )
-
- # override the API version to v2.1
- request = HttpRequest(method="GET", url="v2.1/custom/models?op=summary")
- async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
-
- # pass with absolute url and override the API version to v2.1
- request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/v2.1/custom/models?op=summary")
- async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
+ # The `send_request` method can send custom HTTP requests that share
the client's existing pipeline,
+ # while adding convenience for endpoint construction and service API
versioning.
+ # Now let's use the `send_request` method to make a resource details
fetching request.
+ # The URL of the request can be relative (your endpoint is the default
base URL),
+ # and the API version of your client will automatically be used for
the request.
+ request = HttpRequest(method="GET", url="info")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our resource has
{response_body['customDocumentModels']['count']} custom models, "
+ f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
+ f"The quota limit for custom neural document models is
{response_body['customNeuralDocumentModelBuilds']['quota']} and the resource
has"
+ f"used {response_body['customNeuralDocumentModelBuilds']['used']}.
The resource quota will reset on
{response_body['customNeuralDocumentModelBuilds']['quotaResetDateTime']}"
+ )
+
+ # pass with absolute url and override the API version
+ request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/info?api-version=2022-08-31")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our resource has
{response_body['customDocumentModels']['count']} custom models, "
+ f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
+ )
+
+ # override the API version to v2.1
+ request = HttpRequest(method="GET",
url="v2.1/custom/models?op=summary")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our account has {response_body['summary']['count']} custom
models, "
+ f"and we can have at most {response_body['summary']['limit']}
custom models."
+ )
+
+ # pass with absolute url and override the API version to v2.1
+ request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/v2.1/custom/models?op=summary")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our account has {response_body['summary']['count']} custom
models, "
+ f"and we can have at most {response_body['summary']['limit']}
custom models."
+ )
async def sample_send_request_v2():
@@ -92,42 +91,44 @@
client = FormTrainingClient(
endpoint=endpoint, credential=AzureKeyCredential(key)
)
-
- # The `send_request` method can send custom HTTP requests that share the
client's existing pipeline,
- # while adding convenience for endpoint construction and service API
versioning.
- # Now let's use the `send_request` method to make a resource details
fetching request.
- # The URL of the request can be relative (your endpoint is the default
base URL),
- # and the API version of your client will automatically be used for the
request.
- request = HttpRequest(method="GET", url="custom/models?op=summary")
- async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
-
- # pass with absolute url and override the API version
- request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/v2.0/custom/models?op=summary")
- async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
-
- # override the API version to 2023-07-31
- # can only override the API version to 2022-08-31 or later with absolute
url
- request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/info?api-version=2023-07-31")
+
async with client:
- response = await client.send_request(request)
- response.raise_for_status()
- response_body = response.json()
- print(
- f"Our resource has {response_body['customDocumentModels']['count']}
custom models, "
- f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
- f"The quota limit for custom neural document models is
{response_body['customNeuralDocumentModelBuilds']['quota']} and the resource
has"
- f"used {response_body['customNeuralDocumentModelBuilds']['used']}. The
resource quota will reset on
{response_body['customNeuralDocumentModelBuilds']['quotaResetDateTime']}"
- )
+ # The `send_request` method can send custom HTTP requests that share
the client's existing pipeline,
+ # while adding convenience for endpoint construction and service API
versioning.
+ # Now let's use the `send_request` method to make a resource details
fetching request.
+ # The URL of the request can be relative (your endpoint is the default
base URL),
+ # and the API version of your client will automatically be used for
the request.
+ request = HttpRequest(method="GET", url="custom/models?op=summary")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our account has {response_body['summary']['count']} custom
models, "
+ f"and we can have at most {response_body['summary']['limit']}
custom models."
+ )
+
+ # pass with absolute url and override the API version
+ request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/v2.0/custom/models?op=summary")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our account has {response_body['summary']['count']} custom
models, "
+ f"and we can have at most {response_body['summary']['limit']}
custom models."
+ )
+
+ # override the API version to 2023-07-31
+ # can only override the API version to 2022-08-31 or later with
absolute url
+ request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/info?api-version=2023-07-31")
+ response = await client.send_request(request)
+ response.raise_for_status()
+ response_body = response.json()
+ print(
+ f"Our resource has
{response_body['customDocumentModels']['count']} custom models, "
+ f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
+ f"The quota limit for custom neural document models is
{response_body['customNeuralDocumentModelBuilds']['quota']} and the resource
has"
+ f"used {response_body['customNeuralDocumentModelBuilds']['used']}.
The resource quota will reset on
{response_body['customNeuralDocumentModelBuilds']['quotaResetDateTime']}"
+ )
async def main():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/samples/v3.2_and_later/sample_send_request.py
new/azure-ai-formrecognizer-3.3.3/samples/v3.2_and_later/sample_send_request.py
---
old/azure-ai-formrecognizer-3.3.2/samples/v3.2_and_later/sample_send_request.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/samples/v3.2_and_later/sample_send_request.py
2024-04-10 00:32:13.000000000 +0200
@@ -58,8 +58,6 @@
print(
f"Our resource has {response_body['customDocumentModels']['count']}
custom models, "
f"and we can have at most
{response_body['customDocumentModels']['limit']} custom models."
- f"The quota limit for custom neural document models is
{response_body['customNeuralDocumentModelBuilds']['quota']} and the resource
has"
- f"used {response_body['customNeuralDocumentModelBuilds']['used']}. The
resource quota will reset on
{response_body['customNeuralDocumentModelBuilds']['quotaResetDateTime']}"
)
# override the API version to v2.1
@@ -67,16 +65,20 @@
response = client.send_request(request)
response.raise_for_status()
response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
+ print(
+ f"Our account has {response_body['summary']['count']} custom models, "
+ f"and we can have at most {response_body['summary']['limit']} custom
models."
+ )
# pass with absolute url and override the API version to v2.1
request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/v2.1/custom/models?op=summary")
response = client.send_request(request)
response.raise_for_status()
response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
+ print(
+ f"Our account has {response_body['summary']['count']} custom models, "
+ f"and we can have at most {response_body['summary']['limit']} custom
models."
+ )
def sample_send_request_v2():
@@ -97,16 +99,20 @@
response = client.send_request(request)
response.raise_for_status()
response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
+ print(
+ f"Our account has {response_body['summary']['count']} custom models, "
+ f"and we can have at most {response_body['summary']['limit']} custom
models."
+ )
# pass with absolute url and override the API version
request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/v2.0/custom/models?op=summary")
response = client.send_request(request)
response.raise_for_status()
response_body = response.json()
- print(f"Our account has {response_body['summary']['count']} custom models,
"
- f"and we can have at most {response_body['summary']['limit']} custom
models.")
+ print(
+ f"Our account has {response_body['summary']['count']} custom models, "
+ f"and we can have at most {response_body['summary']['limit']} custom
models."
+ )
# override the API version to 2023-07-31
request = HttpRequest(method="GET",
url=f"{endpoint}/formrecognizer/info?api-version=2023-07-31")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-ai-formrecognizer-3.3.2/setup.py
new/azure-ai-formrecognizer-3.3.3/setup.py
--- old/azure-ai-formrecognizer-3.3.2/setup.py 2023-11-07 21:49:47.000000000
+0100
+++ new/azure-ai-formrecognizer-3.3.3/setup.py 2024-04-10 00:32:13.000000000
+0200
@@ -50,11 +50,11 @@
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
+ 'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
@@ -67,11 +67,11 @@
package_data={
'azure.ai.formrecognizer': ['py.typed'],
},
- python_requires=">=3.7",
+ python_requires=">=3.8",
install_requires=[
- "azure-core<2.0.0,>=1.23.0",
+ "azure-core>=1.23.0",
"msrest>=0.6.21",
- 'azure-common~=1.1',
+ 'azure-common>=1.1',
"typing-extensions>=4.0.1",
]
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_custom_forms.py
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_custom_forms.py
---
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_custom_forms.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_custom_forms.py
2024-04-10 00:32:13.000000000 +0200
@@ -9,7 +9,7 @@
import functools
from io import BytesIO
from datetime import date, time
-from azure_devtools.perfstress_tests import PerfStressTest
+from devtools_testutils.perfstress_tests import PerfStressTest
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import FormRecognizerClient, FormContentType
from azure.ai.formrecognizer.aio import FormRecognizerClient as
AsyncFormRecognizerClient, FormTrainingClient as AsyncFormTrainingClient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_dac_analyze_document_from_url_requests.py
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_dac_analyze_document_from_url_requests.py
---
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_dac_analyze_document_from_url_requests.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_dac_analyze_document_from_url_requests.py
2024-04-10 00:32:13.000000000 +0200
@@ -5,7 +5,7 @@
# ------------------------------------
import os
-from azure_devtools.perfstress_tests import PerfStressTest
+from devtools_testutils.perfstress_tests import PerfStressTest
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentAnalysisClient
from azure.ai.formrecognizer.aio import DocumentAnalysisClient as
AsyncDocumentAnalysisClient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_dac_analyze_document_requests.py
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_dac_analyze_document_requests.py
---
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_dac_analyze_document_requests.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_dac_analyze_document_requests.py
2024-04-10 00:32:13.000000000 +0200
@@ -5,7 +5,7 @@
# ------------------------------------
import os
-from azure_devtools.perfstress_tests import PerfStressTest
+from devtools_testutils.perfstress_tests import PerfStressTest
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentAnalysisClient
from azure.ai.formrecognizer.aio import DocumentAnalysisClient as
AsyncDocumentAnalysisClient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_dmac_build_model_requests.py
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_dmac_build_model_requests.py
---
old/azure-ai-formrecognizer-3.3.2/tests/perfstress_tests/perf_dmac_build_model_requests.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/perfstress_tests/perf_dmac_build_model_requests.py
2024-04-10 00:32:13.000000000 +0200
@@ -5,7 +5,7 @@
# ------------------------------------
import os
-from azure_devtools.perfstress_tests import PerfStressTest
+from devtools_testutils.perfstress_tests import PerfStressTest
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentModelAdministrationClient
from azure.ai.formrecognizer.aio import DocumentModelAdministrationClient as
AsyncDocumentModelAdministrationClient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts.py
2024-04-10 00:32:13.000000000 +0200
@@ -576,7 +576,7 @@
poller = client.begin_analyze_document("prebuilt-receipt", None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -298,7 +298,7 @@
poller = await client.begin_analyze_document("prebuilt-receipt",
None, continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts_from_url.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts_from_url.py
---
old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts_from_url.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts_from_url.py
2024-04-10 00:32:13.000000000 +0200
@@ -371,7 +371,7 @@
poller = client.begin_analyze_document_from_url(None, None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts_from_url_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts_from_url_async.py
---
old/azure-ai-formrecognizer-3.3.2/tests/test_dac_analyze_prebuilts_from_url_async.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/test_dac_analyze_prebuilts_from_url_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -403,7 +403,7 @@
poller = await
client.begin_analyze_document_from_url("prebuilt-receipt", None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_compose_model.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_compose_model.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_compose_model.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_compose_model.py
2024-04-10 00:32:13.000000000 +0200
@@ -104,7 +104,7 @@
result = poller.result()
assert result
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_compose_model_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_compose_model_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_compose_model_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_compose_model_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -108,7 +108,7 @@
result = await poller.result()
assert result
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_copy_model.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_copy_model.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_copy_model.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_copy_model.py
2024-04-10 00:32:13.000000000 +0200
@@ -202,7 +202,7 @@
result = poller.result()
assert result
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_copy_model_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_copy_model_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_copy_model_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_copy_model_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -211,7 +211,7 @@
result = await poller.result()
assert result
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_training.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_training.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_training.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_training.py
2024-04-10 00:32:13.000000000 +0200
@@ -29,7 +29,7 @@
set_bodiless_matcher()
def check_poll_value(poll):
if self.is_live:
- assert poll == 5
+ assert poll == 1
else:
assert poll == 0
check_poll_value(client._client._config.polling_interval)
@@ -270,7 +270,7 @@
poller = client.begin_build_document_model("template",
blob_container_url=None, continuation_token=cont_token)
result = poller.result()
assert result
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_training_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_training_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_dmac_training_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_dmac_training_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -32,7 +32,7 @@
set_bodiless_matcher()
def check_poll_value(poll):
if self.is_live:
- assert poll == 5
+ assert poll == 1
else:
assert poll == 0
check_poll_value(client._client._config.polling_interval)
@@ -251,7 +251,7 @@
poller = await client.begin_build_document_model("template",
blob_container_url=None, continuation_token=cont_token)
result = await poller.result()
assert result
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content.py 2023-11-07
21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content.py 2024-04-10
00:32:13.000000000 +0200
@@ -224,7 +224,7 @@
poller = client.begin_recognize_content(None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@pytest.mark.live_test_only
@skip_flaky_test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -236,7 +236,7 @@
poller = await client.begin_recognize_content(None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@pytest.mark.live_test_only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content_from_url.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content_from_url.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content_from_url.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content_from_url.py
2024-04-10 00:32:13.000000000 +0200
@@ -162,7 +162,7 @@
poller = client.begin_recognize_content_from_url(None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content_from_url_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content_from_url_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_content_from_url_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_content_from_url_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -132,7 +132,7 @@
poller = await client.begin_recognize_content_from_url(None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms.py
2024-04-10 00:32:13.000000000 +0200
@@ -238,7 +238,7 @@
)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@pytest.mark.live_test_only
@skip_flaky_test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -170,7 +170,7 @@
)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools
doesn't throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@pytest.mark.live_test_only
@skip_flaky_test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms_from_url.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms_from_url.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms_from_url.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms_from_url.py
2024-04-10 00:32:13.000000000 +0200
@@ -171,7 +171,7 @@
)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms_from_url_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms_from_url_async.py
---
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_custom_forms_from_url_async.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_custom_forms_from_url_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -180,7 +180,7 @@
)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools
doesn't throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@skip_flaky_test
@FormRecognizerPreparer()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents.py
2024-04-10 00:32:13.000000000 +0200
@@ -154,7 +154,7 @@
poller = client.begin_recognize_identity_documents(None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents_async.py
---
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents_async.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -162,7 +162,7 @@
poller = await client.begin_recognize_identity_documents(None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents_from_url.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents_from_url.py
---
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents_from_url.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents_from_url.py
2024-04-10 00:32:13.000000000 +0200
@@ -106,7 +106,7 @@
poller = client.begin_recognize_identity_documents_from_url(None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents_from_url_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents_from_url_async.py
---
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_identity_documents_from_url_async.py
2023-11-07 21:49:47.000000000 +0100
+++
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_identity_documents_from_url_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -110,7 +110,7 @@
poller = await
client.begin_recognize_identity_documents_from_url(None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice.py 2023-11-07
21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice.py 2024-04-10
00:32:13.000000000 +0200
@@ -300,7 +300,7 @@
poller = client.begin_recognize_invoices(None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -315,7 +315,7 @@
poller = await client.begin_recognize_invoices(None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice_from_url.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice_from_url.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice_from_url.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice_from_url.py
2024-04-10 00:32:13.000000000 +0200
@@ -97,7 +97,7 @@
poller = client.begin_recognize_invoices_from_url(None,
continuation_token=cont_token)
result = poller.result()
assert result is not None
- initial_poller.wait() # necessary so azure-devtools doesn't throw
assertion error
+ initial_poller.wait() # necessary so devtools_testutils doesn't throw
assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice_from_url_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice_from_url_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_frc_invoice_from_url_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_frc_invoice_from_url_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -102,7 +102,7 @@
poller = await client.begin_recognize_invoices_from_url(None,
continuation_token=cont_token)
result = await poller.result()
assert result is not None
- await initial_poller.wait() # necessary so azure-devtools doesn't
throw assertion error
+ await initial_poller.wait() # necessary so devtools_testutils
doesn't throw assertion error
@FormRecognizerPreparer()
@FormRecognizerClientPreparer(client_kwargs={"api_version":
FormRecognizerApiVersion.V2_0})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_send_request.py
new/azure-ai-formrecognizer-3.3.3/tests/test_send_request.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_send_request.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_send_request.py
2024-04-10 00:32:13.000000000 +0200
@@ -22,6 +22,8 @@
@recorded_by_proxy
def test_get_resource_details(self, client, **kwargs):
set_bodiless_matcher()
+ resource_details = client.get_resource_details()
+
request = HttpRequest(
method="GET",
url="info",
@@ -31,8 +33,8 @@
received_info1 = result.json()
assert received_info1
assert received_info1["customDocumentModels"]
- assert received_info1["customDocumentModels"]["count"] == 0
- assert received_info1["customDocumentModels"]["limit"] == 250
+ assert received_info1["customDocumentModels"]["count"] ==
resource_details.custom_document_models.count
+ assert received_info1["customDocumentModels"]["limit"] ==
resource_details.custom_document_models.limit
request = HttpRequest(
method="GET",
@@ -43,7 +45,7 @@
received_info2 = result.json()
assert received_info2["customDocumentModels"]["count"] ==
received_info1["customDocumentModels"]["count"]
assert received_info2["customDocumentModels"]["limit"] ==
received_info1["customDocumentModels"]["limit"]
-
+
# test with absolute url
request = HttpRequest(
method="GET",
@@ -54,7 +56,7 @@
received_info3 = result.json()
assert received_info3["customDocumentModels"]["count"] ==
received_info1["customDocumentModels"]["count"]
assert received_info3["customDocumentModels"]["limit"] ==
received_info1["customDocumentModels"]["limit"]
-
+
# test with v2 API version
request = HttpRequest(
method="GET",
@@ -64,9 +66,9 @@
result = client.send_request(request)
received_info4 = result.json()
assert received_info4
- assert received_info4["summary"]["count"] == 0
- assert received_info4["summary"]["limit"]
-
+ assert received_info4["summary"]["count"] ==
resource_details.custom_document_models.count
+ assert received_info4["summary"]["limit"] ==
resource_details.custom_document_models.limit
+
# test with v2 API version with absolute url
request = HttpRequest(
method="GET",
@@ -83,6 +85,8 @@
@recorded_by_proxy
def test_get_account_properties_v2(self, client):
set_bodiless_matcher()
+ account_properties = client.get_account_properties()
+
request = HttpRequest(
method="GET",
url="custom/models?op=summary",
@@ -92,9 +96,9 @@
received_info1 = result.json()
assert received_info1
assert received_info1["summary"]
- assert received_info1["summary"]["count"] == 0
- assert received_info1["summary"]["limit"] == 250
-
+ assert received_info1["summary"]["count"] ==
account_properties.custom_model_count
+ assert received_info1["summary"]["limit"] ==
account_properties.custom_model_limit
+
# test with absolute url
request = HttpRequest(
method="GET",
@@ -105,7 +109,7 @@
received_info3 = result.json()
assert received_info3["summary"]["count"] ==
received_info1["summary"]["count"]
assert received_info3["summary"]["limit"] ==
received_info1["summary"]["limit"]
-
+
# relative URLs can't override the API version on 2.x clients
request = HttpRequest(
method="GET",
@@ -116,7 +120,7 @@
received_info4 = result.json()
assert received_info4["error"]["code"] == "404"
assert received_info4["error"]["message"] == "Resource not found"
-
+
# test with v2 API version with absolute url
request = HttpRequest(
method="GET",
@@ -126,5 +130,5 @@
result = client.send_request(request)
received_info5 = result.json()
assert received_info5
- assert received_info5["customDocumentModels"]["count"] == 0
- assert received_info5["customDocumentModels"]["limit"] == 250
+ assert received_info5["customDocumentModels"]["count"] ==
account_properties.custom_model_count
+ assert received_info5["customDocumentModels"]["limit"] ==
account_properties.custom_model_limit
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-ai-formrecognizer-3.3.2/tests/test_send_request_async.py
new/azure-ai-formrecognizer-3.3.3/tests/test_send_request_async.py
--- old/azure-ai-formrecognizer-3.3.2/tests/test_send_request_async.py
2023-11-07 21:49:47.000000000 +0100
+++ new/azure-ai-formrecognizer-3.3.3/tests/test_send_request_async.py
2024-04-10 00:32:13.000000000 +0200
@@ -17,13 +17,14 @@
class TestSendRequestAsync(AsyncFormRecognizerTest):
-
@FormRecognizerPreparer()
@DocumentModelAdministrationClientPreparer()
@recorded_by_proxy_async
async def test_get_resource_details(self, client, **kwargs):
set_bodiless_matcher()
async with client:
+ resource_details = await client.get_resource_details()
+
request = HttpRequest(
method="GET",
url="info",
@@ -33,8 +34,8 @@
received_info1 = result.json()
assert received_info1
assert received_info1["customDocumentModels"]
- assert received_info1["customDocumentModels"]["count"] == 0
- assert received_info1["customDocumentModels"]["limit"] == 250
+ assert received_info1["customDocumentModels"]["count"] ==
resource_details.custom_document_models.count
+ assert received_info1["customDocumentModels"]["limit"] ==
resource_details.custom_document_models.limit
request = HttpRequest(
method="GET",
@@ -66,9 +67,9 @@
result = await client.send_request(request)
received_info4 = result.json()
assert received_info4
- assert received_info4["summary"]["count"] == 0
- assert received_info4["summary"]["limit"] == 250
-
+ assert received_info4["summary"]["count"] ==
resource_details.custom_document_models.count
+ assert received_info4["summary"]["limit"] ==
resource_details.custom_document_models.limit
+
# test with v2 API version with absolute url
request = HttpRequest(
method="GET",
@@ -86,6 +87,8 @@
async def test_get_account_properties_v2(self, client):
set_bodiless_matcher()
async with client:
+ account_properties = await client.get_account_properties()
+
request = HttpRequest(
method="GET",
url="custom/models?op=summary",
@@ -95,9 +98,9 @@
received_info1 = result.json()
assert received_info1
assert received_info1["summary"]
- assert received_info1["summary"]["count"] == 0
- assert received_info1["summary"]["limit"] == 250
-
+ assert received_info1["summary"]["count"] ==
account_properties.custom_model_count
+ assert received_info1["summary"]["limit"] ==
account_properties.custom_model_limit
+
# test with absolute url
request = HttpRequest(
method="GET",
@@ -108,7 +111,7 @@
received_info3 = result.json()
assert received_info3["summary"]["count"] ==
received_info1["summary"]["count"]
assert received_info3["summary"]["limit"] ==
received_info1["summary"]["limit"]
-
+
# relative URLs can't override the API version on 2.x clients
request = HttpRequest(
method="GET",
@@ -119,7 +122,7 @@
received_info4 = result.json()
assert received_info4["error"]["code"] == "404"
assert received_info4["error"]["message"] == "Resource not found"
-
+
# test with v2 API version with absolute url
request = HttpRequest(
method="GET",
@@ -129,5 +132,5 @@
result = await client.send_request(request)
received_info5 = result.json()
assert received_info5
- assert received_info5["customDocumentModels"]["count"] == 0
- assert received_info5["customDocumentModels"]["limit"] == 250
+ assert received_info5["customDocumentModels"]["count"] ==
account_properties.custom_model_count
+ assert received_info5["customDocumentModels"]["limit"] ==
account_properties.custom_model_limit