-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add speech sync JSON/REST system tests. #2649
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 speech sync JSON/REST system tests. #2649
Conversation
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
|
I'm not sure how 63cb2fa got in here? I rebased master in... |
0fcd66b to
36843d4
Compare
|
There we go! |
|
Actually..this is pointless now since the switch to the env usage. |
This adds the speech
sync_recognize()JSON/REST system test.Based from #2648