Skip to content

Commit

Permalink
fix: adjusts flaky test; deletes unneeded test (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored and dandhlee committed Nov 18, 2022
1 parent 4f82308 commit e9e2472
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file not shown.

This file was deleted.

0 comments on commit e9e2472

Please sign in to comment.