mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-02 18:23:40 -05:00
chore: upgrade pre-commit hooks (#1735)
* change pep585 hook to pyupgrade * run pyupgrade + cleanup lint errors
This commit is contained in:
@@ -11,7 +11,7 @@ ocr_service = OcrService()
|
||||
def test_image_to_string():
|
||||
with open(Path("tests/data/images/test-ocr.png"), "rb") as image:
|
||||
result = ocr_service.image_to_string(image)
|
||||
with open(Path("tests/data/text/test-ocr.txt"), "r", encoding="utf-8") as expected_result:
|
||||
with open(Path("tests/data/text/test-ocr.txt"), encoding="utf-8") as expected_result:
|
||||
assert result == expected_result.read()
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ def test_image_to_string():
|
||||
def test_image_to_tsv():
|
||||
with open(Path("tests/data/images/test-ocr.png"), "rb") as image:
|
||||
result = ocr_service.image_to_tsv(image.read())
|
||||
with open(Path("tests/data/text/test-ocr.tsv"), "r", encoding="utf-8") as expected_result:
|
||||
with open(Path("tests/data/text/test-ocr.tsv"), encoding="utf-8") as expected_result:
|
||||
assert result == expected_result.read()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user