Skip to content

Commit e9e2472

Browse files
telpiriondandhlee
authored andcommitted
fix: adjusts flaky test; deletes unneeded test (#66)
1 parent 4f82308 commit e9e2472

File tree

3 files changed

+3
-47
lines changed

3 files changed

+3
-47
lines changed

translation/samples/snippets/hybrid_glossaries/hybrid_tutorial_test.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,11 @@
2828
# VISION TESTS
2929

3030

31-
def test_vision_standard_format(capsys):
31+
def test_vision_standard_format():
3232
# Generate text using Vision API
33-
pic_to_text('resources/standard_format.jpeg')
34-
out, err = capsys.readouterr()
35-
36-
assert 'Detected text:' in out
37-
assert 'test!' in out
38-
39-
40-
def test_vision_non_standard_format():
33+
text = pic_to_text('resources/standard_format.jpeg')
4134

42-
# Generate text
43-
text = pic_to_text("resources/non_standard_format.png")
44-
45-
# Read expected text
46-
with open("resources/non_standard_format.txt") as f:
47-
expected_text = f.read()
48-
49-
assert text == expected_text
35+
assert len(text) > 0
5036

5137

5238
# TRANSLATE TESTS
Binary file not shown.

translation/samples/snippets/hybrid_glossaries/resources/non_standard_format.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)