-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[CS Face] Add python sdk snapshot test. #4239
[CS Face] Add python sdk snapshot test. #4239
Conversation
Codecov Report
@@ Coverage Diff @@
## restapi_auto_cognitiveservices/data-plane/Face #4239 +/- ##
==================================================================================
+ Coverage 53.76% 53.8% +0.04%
==================================================================================
Files 9864 9864
Lines 210011 210011
==================================================================================
+ Hits 112913 113003 +90
+ Misses 97098 97008 -90
Continue to review full report at Codecov.
|
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Hi @lmazuel , @acured is from our Face API team and working on the SDKs. This is to align Face Python SDK with latest published Face API with Snapshot features (rollout started on Jan 21st and will last a week), which only adds new API interfaces for Face API, without changing any existing interfaces. This PR is to add tests for the new Snapshot interfaces. Please help review it, thanks. |
Hi @lebronJ , thanks for the tests! LGTM! |
while operationStatus != "succeeded" and operationStatus != "failed": | ||
getOperationStatusResponse = face_client.snapshot.get_operation_status(takeOperationId) | ||
operationStatus = getOperationStatusResponse.additional_properties["Status"] | ||
sleep(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change it to:
if self.is_live:
sleep(1)
since we want to sleep in real mode, but in record we can be fast. We will make our CI faster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* Generated from 1b9b098a5d61cbc372acb108a29c29328a4120b2 (#4219) Resolve comments. * [AutoPR cognitiveservices/data-plane/Face] [Cogs Face] Refine the documentation for Face API's new Snapshot features. (#4240) * Generated from 2662c92f89bbd0d23bcd042cb8ee4401d9ec33ff Add period after quota description. * Generated from c88a6f0cf2096a86ec5e870bd7524d0b01b152ae Change 。 to . * [AutoPR cognitiveservices/data-plane/Face] [Cogs Face] Remove Face API reference of Gender::genderless to avoid confusion. (#4347) * Generated from 6cf5bbc0433e906413c9312b93441c491c06c529 Remove API reference of Gender::genderless. * Packaging update of azure-cognitiveservices-vision-face * [CS Face] Add python sdk snapshot test. (#4239) * Add python sdk snapshot test. * change 'sleep' works in live. * Packaging update of azure-cognitiveservices-vision-face * 0.2.0
No description provided.