Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions sdk/formrecognizer/azure-ai-formrecognizer/tests/test_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,21 @@ def test_sample_differentiate_output_models_trained_with_and_without_labels(
form_recognizer_account,
form_recognizer_account_key
)

@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
def test_sample_recognize_business_cards(
self, resource_group, location, form_recognizer_account, form_recognizer_account_key
):
_test_file('sample_recognize_business_cards.py', form_recognizer_account, form_recognizer_account_key)

@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
def test_sample_create_composed_model(
self, resource_group, location, form_recognizer_account, form_recognizer_account_key
):
os.environ["PURCHASE_ORDER_OFFICE_SUPPLIES_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
os.environ["PURCHASE_ORDER_OFFICE_EQUIPMENT_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
os.environ["PURCHASE_ORDER_OFFICE_FURNITURE_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
os.environ["PURCHASE_ORDER_OFFICE_CLEANING_SUPPLIES_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
_test_file('sample_create_composed_model.py', form_recognizer_account, form_recognizer_account_key)
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,21 @@ async def test_sample_differentiate_output_models_trained_with_and_without_label
form_recognizer_account,
form_recognizer_account_key
)

@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
def test_sample_recognize_business_cards_async(
self, resource_group, location, form_recognizer_account, form_recognizer_account_key
):
_test_file('sample_recognize_business_cards_async.py', form_recognizer_account, form_recognizer_account_key)

@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
def test_sample_create_composed_model_async(
self, resource_group, location, form_recognizer_account, form_recognizer_account_key
):
os.environ["PURCHASE_ORDER_OFFICE_SUPPLIES_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
os.environ["PURCHASE_ORDER_OFFICE_EQUIPMENT_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
os.environ["PURCHASE_ORDER_OFFICE_FURNITURE_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
os.environ["PURCHASE_ORDER_OFFICE_CLEANING_SUPPLIES_SAS_URL"] = self.get_settings_value("FORM_RECOGNIZER_STORAGE_CONTAINER_SAS_URL")
_test_file('sample_create_composed_model_async.py', form_recognizer_account, form_recognizer_account_key)