Skip to content

Commit ec9f2dd

Browse files
authored
chore: renamed output dir to prevent bucket concurrency error (#120)
Fixes #115, #116 🦕
1 parent 3024b24 commit ec9f2dd

4 files changed

+4
-4
lines changed

translation/samples/snippets/beta_snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_batch_translate_text(capsys, bucket):
7575
beta_snippets.batch_translate_text(
7676
PROJECT_ID,
7777
"gs://cloud-samples-data/translation/text.txt",
78-
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
78+
"gs://{}/translation/BATCH_TRANSLATION_BETA_OUTPUT/".format(bucket.name),
7979
)
8080
out, _ = capsys.readouterr()
8181
assert "Total Characters: 13" in out

translation/samples/snippets/translate_v3_batch_translate_text_with_glossary_and_model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def bucket():
6969
def test_batch_translate_text_with_glossary_and_model(capsys, bucket, glossary):
7070
translate_v3_batch_translate_text_with_glossary_and_model.batch_translate_text_with_glossary_and_model(
7171
"gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt",
72-
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
72+
"gs://{}/translation/BATCH_TRANSLATION_GLOS_MODEL_OUTPUT/".format(bucket.name),
7373
PROJECT_ID,
7474
MODEL_ID,
7575
glossary,

translation/samples/snippets/translate_v3_batch_translate_text_with_glossary_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def bucket():
7070
def test_batch_translate_text_with_glossary(capsys, bucket, glossary):
7171
translate_v3_batch_translate_text_with_glossary.batch_translate_text_with_glossary(
7272
"gs://cloud-samples-data/translation/text_with_glossary.txt",
73-
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
73+
"gs://{}/translation/BATCH_TRANSLATION_GLOS_OUTPUT/".format(bucket.name),
7474
PROJECT_ID,
7575
glossary,
7676
320,

translation/samples/snippets/translate_v3_batch_translate_text_with_model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def bucket():
4040
def test_batch_translate_text_with_model(capsys, bucket):
4141
translate_v3_batch_translate_text_with_model.batch_translate_text_with_model(
4242
"gs://cloud-samples-data/translation/custom_model_text.txt",
43-
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
43+
"gs://{}/translation/BATCH_TRANSLATION_MODEL_OUTPUT/".format(bucket.name),
4444
PROJECT_ID,
4545
MODEL_ID,
4646
)

0 commit comments

Comments
 (0)