Skip to content

Commit e877699

Browse files
authored
Fix copy tests (#11594)
1 parent bc01929 commit e877699

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestCopyModel(FormRecognizerTest):
2121
@GlobalTrainingAccountPreparer(copy=True)
2222
def test_copy_model_successful(self, client, container_sas_url, location, resource_id):
2323

24-
poller = client.begin_train_model(container_sas_url)
24+
poller = client.begin_train_model(container_sas_url, use_training_labels=False)
2525
model = poller.result()
2626

2727
target = client.get_copy_authorization(resource_region=location, resource_id=resource_id)
@@ -42,7 +42,7 @@ def test_copy_model_successful(self, client, container_sas_url, location, resour
4242
@GlobalTrainingAccountPreparer(copy=True)
4343
def test_copy_model_fail(self, client, container_sas_url, location, resource_id):
4444

45-
poller = client.begin_train_model(container_sas_url)
45+
poller = client.begin_train_model(container_sas_url, use_training_labels=False)
4646
model = poller.result()
4747

4848
# give an incorrect region
@@ -56,7 +56,7 @@ def test_copy_model_fail(self, client, container_sas_url, location, resource_id)
5656
@GlobalTrainingAccountPreparer(copy=True)
5757
def test_copy_model_transform(self, client, container_sas_url, location, resource_id):
5858

59-
poller = client.begin_train_model(container_sas_url)
59+
poller = client.begin_train_model(container_sas_url, use_training_labels=False)
6060
model = poller.result()
6161

6262
target = client.get_copy_authorization(resource_region=location, resource_id=resource_id)

sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model_async.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestCopyModelAsync(AsyncFormRecognizerTest):
2222
@GlobalTrainingAccountPreparer(copy=True)
2323
async def test_copy_model_successful(self, client, container_sas_url, location, resource_id):
2424

25-
model = await client.train_model(container_sas_url)
25+
model = await client.train_model(container_sas_url, use_training_labels=False)
2626

2727
target = await client.get_copy_authorization(resource_region=location, resource_id=resource_id)
2828

@@ -41,7 +41,7 @@ async def test_copy_model_successful(self, client, container_sas_url, location,
4141
@GlobalTrainingAccountPreparer(copy=True)
4242
async def test_copy_model_fail(self, client, container_sas_url, location, resource_id):
4343

44-
model = await client.train_model(container_sas_url)
44+
model = await client.train_model(container_sas_url, use_training_labels=False)
4545

4646
# give an incorrect region
4747
target = await client.get_copy_authorization(resource_region="eastus", resource_id=resource_id)
@@ -53,7 +53,7 @@ async def test_copy_model_fail(self, client, container_sas_url, location, resour
5353
@GlobalTrainingAccountPreparer(copy=True)
5454
async def test_copy_model_transform(self, client, container_sas_url, location, resource_id):
5555

56-
model = await client.train_model(container_sas_url)
56+
model = await client.train_model(container_sas_url, use_training_labels=False)
5757

5858
target = await client.get_copy_authorization(resource_region=location, resource_id=resource_id)
5959

0 commit comments

Comments
 (0)