File tree Expand file tree Collapse file tree 14 files changed +80
-20
lines changed
appengine/standard/endpoints-frameworks-v2
texttospeech/cloud-client
vision/cloud-client/detect Expand file tree Collapse file tree 14 files changed +80
-20
lines changed Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Download secrets from Cloud Storage.
4
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
5
+
6
+ # Tell the trampoline which build file to use.
7
+ env_vars: {
8
+ key: " TRAMPOLINE_BUILD_FILE"
9
+ value: " github/python-docs-samples/.kokoro/system_tests.sh"
10
+ }
11
+
12
+ env_vars: {
13
+ key: " NOX_SESSION"
14
+ value: " dlp and py36 and not appengine"
15
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Download secrets from Cloud Storage.
4
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
5
+
6
+ # Tell the trampoline which build file to use.
7
+ env_vars: {
8
+ key: " TRAMPOLINE_BUILD_FILE"
9
+ value: " github/python-docs-samples/.kokoro/system_tests.sh"
10
+ }
11
+
12
+ env_vars: {
13
+ key: " NOX_SESSION"
14
+ value: " tasks and py36 and not appengine"
15
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Download secrets from Cloud Storage.
4
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
5
+
6
+ # Tell the trampoline which build file to use.
7
+ env_vars: {
8
+ key: " TRAMPOLINE_BUILD_FILE"
9
+ value: " github/python-docs-samples/.kokoro/system_tests.sh"
10
+ }
11
+
12
+ env_vars: {
13
+ key: " NOX_SESSION"
14
+ value: " dlp and py36 and not appengine"
15
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Download secrets from Cloud Storage.
4
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
5
+
6
+ # Tell the trampoline which build file to use.
7
+ env_vars: {
8
+ key: " TRAMPOLINE_BUILD_FILE"
9
+ value: " github/python-docs-samples/.kokoro/system_tests.sh"
10
+ }
11
+
12
+ env_vars: {
13
+ key: " NOX_SESSION"
14
+ value: " tasks and py36 and not appengine"
15
+ }
Original file line number Diff line number Diff line change 17
17
18
18
# [START imports]
19
19
import endpoints
20
- from protorpc import message_types
21
- from protorpc import messages
22
- from protorpc import remote
20
+ from endpoints import message_types
21
+ from endpoints import messages
22
+ from endpoints import remote
23
23
# [END imports]
24
24
25
25
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import endpoints
16
+ from endpoints import message_types
16
17
import mock
17
- from protorpc import message_types
18
18
import pytest
19
19
20
20
import main
Original file line number Diff line number Diff line change 1
- google-endpoints == 3.0 .0
2
- google-endpoints-api-management == 1.5.1
1
+ google-endpoints == 4.4 .0
2
+ google-endpoints-api-management == 1.8.0
Original file line number Diff line number Diff line change 17
17
18
18
# [START imports]
19
19
import endpoints
20
- from protorpc import message_types
21
- from protorpc import messages
22
- from protorpc import remote
20
+ from endpoints import message_types
21
+ from endpoints import messages
22
+ from endpoints import remote
23
23
24
24
from data import AIRPORTS
25
25
# [END imports]
Original file line number Diff line number Diff line change 1
- google-endpoints == 3.0 .0
2
- google-endpoints-api-management == 1.5.1
1
+ google-endpoints == 4.4 .0
2
+ google-endpoints-api-management == 1.8.0
Original file line number Diff line number Diff line change 17
17
18
18
# [START imports]
19
19
import endpoints
20
- from protorpc import message_types
21
- from protorpc import messages
22
- from protorpc import remote
20
+ from endpoints import message_types
21
+ from endpoints import messages
22
+ from endpoints import remote
23
23
# [END imports]
24
24
25
25
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ from endpoints import message_types
15
16
import mock
16
- from protorpc import message_types
17
17
18
18
import main
19
19
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Google Cloud Text-to-Speech API Python Samples
7
7
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/README.rst
8
8
9
9
10
- This directory contains samples for Google Cloud Text-to-Speech API. The `Google Cloud Text To Speech API `_ enables you to generate and customize synthesized speech from text or SSML.
10
+ This directory contains samples for Google Cloud Text-to-Speech API. The `Google Cloud Text-to- Speech API `_ enables you to generate and customize synthesized speech from text or SSML.
11
11
12
12
13
13
@@ -170,4 +170,4 @@ to `browse the source`_ and `report issues`_.
170
170
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
171
171
172
172
173
- .. _Google Cloud SDK : https://cloud.google.com/sdk/
173
+ .. _Google Cloud SDK : https://cloud.google.com/sdk/
Original file line number Diff line number Diff line change 1
- google-cloud-texttospeech == 0.2 .0
1
+ google-cloud-texttospeech == 0.1 .0
Original file line number Diff line number Diff line change @@ -222,14 +222,14 @@ def test_detect_web_with_geo(capsys):
222
222
'resources/city.jpg' )
223
223
detect .web_entities_include_geo_results (file_name )
224
224
out , _ = capsys .readouterr ()
225
- assert 'Zepra' in out
225
+ assert 'Zepra' in out or 'Electra Tower' in out
226
226
227
227
228
228
def test_detect_web_with_geo_uri (capsys ):
229
229
file_name = 'gs://{}/vision/city.jpg' .format (BUCKET )
230
230
detect .web_entities_include_geo_results_uri (file_name )
231
231
out , _ = capsys .readouterr ()
232
- assert 'Zepra' in out
232
+ assert 'Zepra' in out or 'Electra Tower' in out
233
233
234
234
235
235
def test_detect_document (capsys ):
You can’t perform that action at this time.
0 commit comments