From 435782ae5cf1d104264dc763e5fe2b2a19d645d1 Mon Sep 17 00:00:00 2001 From: int3l Date: Mon, 7 Sep 2020 16:40:37 +0300 Subject: [PATCH] Fix variable typo in test case --- tests/pytesseract_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytesseract_test.py b/tests/pytesseract_test.py index e40c4a74..b1ac01d3 100644 --- a/tests/pytesseract_test.py +++ b/tests/pytesseract_test.py @@ -292,7 +292,7 @@ def test_image_to_data_common_output(test_file_small, output): assert isinstance(result, bytes) elif output is Output.DICT: - confidence_values = expected_dict_result.pop('conf', None) + confidence_values = result.pop('conf', None) assert confidence_values is not None assert 0 <= confidence_values[-1] <= 100 assert result == expected_dict_result