Skip to content

Commit

Permalink
[formrecognizer] Fix test assert for changing description value (#22324)
Browse files Browse the repository at this point in the history
* fix assert for changing description value

* fix advanced samples file reference

* skip copy model samples
  • Loading branch information
catalinaperalta authored Jan 5, 2022
1 parent f68dd95 commit 1261d34
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/devops_tasks/test_run_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@
"azure-ai-formrecognizer": [
"sample_manage_custom_models.py",
"sample_manage_custom_models_async.py",
"sample_copy_model.py",
"sample_copy_model_async.py",
],
"azure-ai-language-questionanswering": ["sample_chat.py"],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async def get_elements_with_spans_async():
"..",
"..",
"..",
"..",
"./sample_forms/forms/Form_1.jpg",
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def get_elements_with_spans():
os.path.abspath(__file__),
"..",
"..",
"..",
"./sample_forms/forms/Form_1.jpg",
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def test_get_list_operations(self, client):
assert op.error is None
model = op.result
assert model.model_id
assert model.description is None
# operations may or may not have descriptions
if model.description:
assert model.description
assert model.created_on
for name, doc_type in model.doc_types.items():
assert name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ async def test_get_list_operations(self, client):
assert op.error is None
model = op.result
assert model.model_id
assert model.description is None
# operations may or may not have descriptions
if model.description:
assert model.description
assert model.created_on
for name, doc_type in model.doc_types.items():
assert name
Expand Down

0 comments on commit 1261d34

Please sign in to comment.