Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix copy tests #11594

Merged
merged 1 commit into from
May 21, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestCopyModel(FormRecognizerTest):
@GlobalTrainingAccountPreparer(copy=True)
def test_copy_model_successful(self, client, container_sas_url, location, resource_id):

poller = client.begin_train_model(container_sas_url)
poller = client.begin_train_model(container_sas_url, use_training_labels=False)
model = poller.result()

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

poller = client.begin_train_model(container_sas_url)
poller = client.begin_train_model(container_sas_url, use_training_labels=False)
model = poller.result()

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

poller = client.begin_train_model(container_sas_url)
poller = client.begin_train_model(container_sas_url, use_training_labels=False)
model = poller.result()

target = client.get_copy_authorization(resource_region=location, resource_id=resource_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestCopyModelAsync(AsyncFormRecognizerTest):
@GlobalTrainingAccountPreparer(copy=True)
async def test_copy_model_successful(self, client, container_sas_url, location, resource_id):

model = await client.train_model(container_sas_url)
model = await client.train_model(container_sas_url, use_training_labels=False)

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

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

model = await client.train_model(container_sas_url)
model = await client.train_model(container_sas_url, use_training_labels=False)

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

model = await client.train_model(container_sas_url)
model = await client.train_model(container_sas_url, use_training_labels=False)

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

Expand Down