Skip to content

Commit b478927

Browse files
authored
chore(deps): update google-cloud-translate to v3.16.0 (#12562)
* chore(deps): update google-cloud-translate to v3.16.0 * fix: update test to not presume first entry
1 parent d4bccd2 commit b478927

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

automl/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-cloud-translate==3.11.1
1+
google-cloud-translate==3.16.0
22
google-cloud-storage==2.9.0
33
google-cloud-automl==2.11.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask==2.2.2
22
functions-framework==3.5.0
3-
google-cloud-translate==3.11.1
3+
google-cloud-translate==3.16.0
44
pytest==8.2.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask==2.2.2
22
functions-framework==3.5.0
3-
google-cloud-translate==3.11.1
3+
google-cloud-translate==3.16.0
44
Werkzeug==2.3.7

functions/ocr/app/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
google-cloud-pubsub==2.21.5
22
google-cloud-storage==2.9.0
3-
google-cloud-translate==3.11.1
3+
google-cloud-translate==3.16.0
44
google-cloud-vision==3.4.2

functions/v2/ocr/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
functions-framework==3.5.0
22
google-cloud-pubsub==2.21.5
33
google-cloud-storage==2.9.0
4-
google-cloud-translate==3.11.1
4+
google-cloud-translate==3.16.0
55
google-cloud-vision==3.4.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-cloud-translate==3.11.1
1+
google-cloud-translate==3.16.0
22
google-cloud-vision==3.4.2
33
google-cloud-texttospeech==2.14.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
google-cloud-translate==3.11.1
1+
google-cloud-translate==3.16.0
22
google-cloud-storage==2.9.0
33
google-cloud-automl==2.11.1

translate/samples/snippets/snippets_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def test_list_languages(capsys: pytest.LogCaptureFixture) -> None:
2828
out, _ = capsys.readouterr()
2929
for language in results:
3030
print("{name} ({language})".format(**language))
31-
assert "Afrikaans" in results[0]["name"]
31+
assert "Afrikaans" in [r["name"] for r in results]
3232

3333

3434
def test_list_languages_with_target(capsys: pytest.LogCaptureFixture) -> None:
3535
results = snippets.list_languages_with_target("is")
3636
out, _ = capsys.readouterr()
37-
assert "afríkanska" in results[0]["name"]
37+
assert "afríkanska" in [r["name"] for r in results]
3838

3939

4040
def test_translate_text(capsys: pytest.LogCaptureFixture) -> None:

0 commit comments

Comments
 (0)