-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add system tests for detect_faces(). #2827
Add system tests for detect_faces(). #2827
Conversation
landmark.landmark_type, False) | ||
if valid_landmark_type: | ||
return True | ||
return False |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
self._assert_likelihood(face.headwear) | ||
self.assertGreater(abs(face.angles.roll), 0.0) | ||
self.assertGreater(abs(face.angles.pan), 0.0) | ||
self.assertGreater(abs(face.angles.tilt), 0.0) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
def _assert_coordinate(self, coordinate): | ||
if coordinate is None: | ||
return True |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
if coordinate is None: | ||
return True | ||
|
||
self.assertIn(type(coordinate), [int, float]) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
return True | ||
|
||
self.assertIn(type(coordinate), [int, float]) | ||
return |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Travis is green, merging. |
…-tests Add system tests for detect_faces().
Towards #2753
This adds system test for
detect_faces()
.test_detect_faces_content (vision.TestVisionClientFace) ... ok test_detect_faces_filename (vision.TestVisionClientFace) ... ok test_detect_faces_gcs (vision.TestVisionClientFace) ... ok test_detect_logos_content (vision.TestVisionClientLogo) ... ok test_detect_logos_filename (vision.TestVisionClientLogo) ... ok test_detect_logos_gcs (vision.TestVisionClientLogo) ... ok ---------------------------------------------------------------------- Ran 6 tests in 9.324s OK ________________________________________________________ summary ________________________________________________________ system-tests: commands succeeded congratulations :)