Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Output.BYTES,
Output.DICT,
Output.STRING,
],
ids=[
'bytes',
'dict',
'string',
]
)
def test_image_to_data_common_output(test_file, output):
"""Test and compare the type of the result."""
result = image_to_data(test_file, output_type=output)
expected_keys = [
'level', 'page_num', 'block_num', 'par_num', 'line_num', 'word_num',
'left', 'top', 'width', 'height', 'conf', 'text'
]