Skip to content

Conversation

@daspecster
Copy link
Contributor

@daspecster daspecster commented Nov 30, 2016

Towards: #2753 and #2526.

I will add the filename test after #2778 is merged.
To get this kicked off though, here are some system tests for detect_logo().

@daspecster daspecster added testing api: vision Issues related to the Cloud Vision API. labels Nov 30, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 30, 2016
@daspecster daspecster mentioned this pull request Nov 30, 2016
10 tasks
Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

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

Mostly LG but a few changes are "needed"

TEST_MODULES = {
'datastore': datastore,
'speech': speech,
'vision': vision,

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

CLIENT = None
TEST_BUCKET = None

LOGO_FILE = os.path.join(os.path.dirname(__file__), 'data', 'logo.png')

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

bucket_retry(Config.TEST_BUCKET.delete)(force=True)


class TestSpeechClient(unittest.TestCase):

This comment was marked as spam.

This comment was marked as spam.

value.delete()

def _assert_logo(self, logo):
self.assertEqual(logo.description, 'Google')

This comment was marked as spam.

@daspecster daspecster force-pushed the vision-add-system-tests branch from bd0270b to c6019d8 Compare December 2, 2016 18:38
@daspecster
Copy link
Contributor Author

I added the filename test as well.

system-tests runtests: commands[1] | python /Users/daspecster/Documents/google/google-cloud-python/system_tests/attempt_system_tests.py vision
test_detect_logos_content (vision.TestVisionClient) ... ok
test_detect_logos_filename (vision.TestVisionClient) ... ok
test_detect_logos_gcs (vision.TestVisionClient) ... ok

----------------------------------------------------------------------
Ran 3 tests in 5.540s

OK
____________________________________________________ summary _____________________________________________________
  system-tests: commands succeeded
  congratulations :)

@daspecster daspecster force-pushed the vision-add-system-tests branch from c6019d8 to e6ea013 Compare December 2, 2016 20:14
@daspecster
Copy link
Contributor Author

daspecster commented Dec 2, 2016

Squashed! And cancelled travis #SaveCycles.

@daspecster daspecster merged commit 1650979 into googleapis:master Dec 2, 2016
@daspecster daspecster deleted the vision-add-system-tests branch December 2, 2016 20:42
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…tests

Add system test for Vision Logo detection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants