FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add system test for Vision Logo detection. by daspecster · Pull Request #2788 · googleapis/google-cloud-python · GitHub

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 commented Nov 30, 2016
edited
Loading

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

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

dhermes 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 thread system_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 thread system_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.

Comment thread system_tests/vision.py
value.delete()

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

This comment was marked as spam.

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

Copy link
Copy Markdown
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 force-pushed the vision-add-system-tests branch from c6019d8 to e6ea013 Compare December 2, 2016 20:14

daspecster commented Dec 2, 2016
edited
Loading

Copy link
Copy Markdown
Contributor Author

Squashed! And cancelled travis #SaveCycles.

daspecster merged commit 1650979 into googleapis:master Dec 2, 2016
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL