Skip to content

Add system test for Vision Logo detection. - #2788

Merged
daspecster merged 1 commit into
googleapis:masterfrom
daspecster:vision-add-system-tests
Dec 2, 2016
Merged

Add system test for Vision Logo detection.#2788
daspecster merged 1 commit into
googleapis:masterfrom
daspecster:vision-add-system-tests

Conversation

@daspecster

@daspecsterdaspecster commented Nov 30, 2016

Copy link
Copy Markdown
Contributor

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().

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

@dhermesdhermes left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threadsystem_tests/vision.py Outdated
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.

Comment threadsystem_tests/vision.py Outdated
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
daspecsterforce-pushed the vision-add-system-tests branch from bd0270b to c6019d8CompareDecember 2, 2016 18:38
@daspecster

Copy link
Copy Markdown
ContributorAuthor

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
daspecsterforce-pushed the vision-add-system-tests branch from c6019d8 to e6ea013CompareDecember 2, 2016 20:14
@daspecster

daspecster commented Dec 2, 2016

Copy link
Copy Markdown
ContributorAuthor

Squashed! And cancelled travis #SaveCycles.

@daspecster
daspecster merged commit 1650979 into googleapis:masterDec 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: visionIssues related to the Cloud Vision API.cla: yesThis human has signed the Contributor License Agreement.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@daspecster@dhermes@tseaver@googlebot