Skip to content

Commit

Permalink
chore: renamed output dir to prevent bucket concurrency error (#120)
Browse files Browse the repository at this point in the history
Fixes #115, #116 🦕
  • Loading branch information
munkhuushmgl authored and dandhlee committed Nov 18, 2022
1 parent c774055 commit ad95709
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion translation/samples/snippets/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_batch_translate_text(capsys, bucket):
beta_snippets.batch_translate_text(
PROJECT_ID,
"gs://cloud-samples-data/translation/text.txt",
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
"gs://{}/translation/BATCH_TRANSLATION_BETA_OUTPUT/".format(bucket.name),
)
out, _ = capsys.readouterr()
assert "Total Characters: 13" in out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def bucket():
def test_batch_translate_text_with_glossary_and_model(capsys, bucket, glossary):
translate_v3_batch_translate_text_with_glossary_and_model.batch_translate_text_with_glossary_and_model(
"gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt",
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
"gs://{}/translation/BATCH_TRANSLATION_GLOS_MODEL_OUTPUT/".format(bucket.name),
PROJECT_ID,
MODEL_ID,
glossary,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def bucket():
def test_batch_translate_text_with_glossary(capsys, bucket, glossary):
translate_v3_batch_translate_text_with_glossary.batch_translate_text_with_glossary(
"gs://cloud-samples-data/translation/text_with_glossary.txt",
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
"gs://{}/translation/BATCH_TRANSLATION_GLOS_OUTPUT/".format(bucket.name),
PROJECT_ID,
glossary,
320,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def bucket():
def test_batch_translate_text_with_model(capsys, bucket):
translate_v3_batch_translate_text_with_model.batch_translate_text_with_model(
"gs://cloud-samples-data/translation/custom_model_text.txt",
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
"gs://{}/translation/BATCH_TRANSLATION_MODEL_OUTPUT/".format(bucket.name),
PROJECT_ID,
MODEL_ID,
)
Expand Down

0 comments on commit ad95709

Please sign in to comment.