Add speech sync JSON/REST system tests.#2649
Closed
daspecster wants to merge 2 commits intogoogleapis:masterfrom
Closed
Add speech sync JSON/REST system tests.#2649daspecster wants to merge 2 commits intogoogleapis:masterfrom
daspecster wants to merge 2 commits intogoogleapis:masterfrom
Conversation
14 tasks
dhermes
reviewed
Oct 31, 2016
system_tests/speech.py
Outdated
|
|
||
| def setUpModule(): | ||
| Config.CLIENT = speech.Client() | ||
| Config.CLIENT = speech.Client |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
system_tests/speech.py
Outdated
| max_alternatives=None): | ||
| client = Config.CLIENT | ||
| max_alternatives=None, use_gax=True): | ||
| client = Config.CLIENT(use_gax=use_gax) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| results = self._make_sync_request(content=file_obj.read(), | ||
| max_alternatives=2, | ||
| use_gax=False) | ||
| second_alternative = results[1] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| max_alternatives=2, | ||
| use_gax=False) | ||
| second_alternative = results[1] | ||
| self.assertEqual(len(results), 2) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
600828f to
0fcd66b
Compare
Contributor
Author
|
I'm not sure how 63cb2fa got in here? I rebased master in... |
0fcd66b to
36843d4
Compare
Contributor
Author
|
There we go! |
Contributor
Author
|
Actually..this is pointless now since the switch to the env usage. |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the speech
sync_recognize()JSON/REST system test.Based from #2648