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

[translation] regenerate on v1.0 #18861

Merged
merged 4 commits into from
May 24, 2021

Conversation

kristapratico
Copy link
Member

@kristapratico kristapratico commented May 21, 2021

Resolves #18778

Regenerates on the v1.0 swagger and rerecords all tests.

@kristapratico
Copy link
Member Author

/azp run python - translation - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kristapratico kristapratico marked this pull request as ready for review May 24, 2021 16:48
@@ -11,7 +11,7 @@
from azure.core.credentials import AzureKeyCredential
from azure.core.pipeline.policies import AzureKeyCredentialPolicy
from ._generated import BatchDocumentTranslationClient as _BatchDocumentTranslationClient
from ._generated.models import BatchStatusDetail as _BatchStatusDetail
from ._generated.models import TranslationStatus as _TranslationStatus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is because of the swagger update, right? did you change any public api ? not sure how I can see that :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is updated due to the renames in the swagger. No public API changes.

@@ -125,7 +125,7 @@ def test_list_submitted_jobs_filter_by_created_after(self, client):
docs_per_job = 2

# create some jobs
start = datetime.now()
start = datetime.utcnow()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a bug?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the tests, so not an SDK bug. Just an adjustment so that these tests pass for whatever timezone you are running it in.

Copy link
Member

@maririos maririos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog update

@kristapratico kristapratico merged commit 1abed9d into Azure:master May 24, 2021
@kristapratico kristapratico deleted the dt-regen-code branch May 24, 2021 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[translation] update generated code to target v1.0
2 participants