diff --git a/translation/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py b/translation/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py index eaccf7f2a51b..2b4f65593ae9 100644 --- a/translation/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py +++ b/translation/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py @@ -28,25 +28,11 @@ # VISION TESTS -def test_vision_standard_format(capsys): +def test_vision_standard_format(): # Generate text using Vision API - pic_to_text('resources/standard_format.jpeg') - out, err = capsys.readouterr() - - assert 'Detected text:' in out - assert 'test!' in out - - -def test_vision_non_standard_format(): + text = pic_to_text('resources/standard_format.jpeg') - # Generate text - text = pic_to_text("resources/non_standard_format.png") - - # Read expected text - with open("resources/non_standard_format.txt") as f: - expected_text = f.read() - - assert text == expected_text + assert len(text) > 0 # TRANSLATE TESTS diff --git a/translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.png b/translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.png deleted file mode 100644 index eeee9c7f6a6f..000000000000 Binary files a/translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.png and /dev/null differ diff --git a/translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.txt b/translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.txt deleted file mode 100644 index 529799ee94b1..000000000000 --- a/translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.txt +++ /dev/null @@ -1,30 +0,0 @@ -MENU -Google Cloud Bistro -SALADS -SANDWICHES -GCP Green Salad -Fresh Greens -$5 -Kubernetes Sandwich -ham and cheese sandwich -$10 -Cloud Caprese -Mozzarella, tomatoes, basil, -balsamic reduction -$8 -Dialogflow Panini -chicken, pesto, and -mozzarella panini -$10 -Firebase Fruit Salad -watermelon, honeydew melon, -and pineapple -$6 -Compute Engine Burger -quarter-pound burger with -cheddar cheese -$10 -BigQuery BLT -bacon, lettuce, and tomato -sandwich -$10