Skip to content

Commit

Permalink
test: corrected some of table tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-kmiecik committed Jun 10, 2024
1 parent f3b1b83 commit f4664cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_unstructured_inference/models/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def test_table_prediction_runs_with_empty_recognize(

def test_table_prediction_with_ocr_tokens(table_transformer, example_image, mocked_ocr_tokens):
prediction = table_transformer.predict(example_image, ocr_tokens=mocked_ocr_tokens)
assert '<table><thead><th rowspan="2">' in prediction
assert '<table><thead><tr><th rowspan="2">' in prediction
assert "<tr><td>Blind</td><td>5</td><td>1</td><td>4</td><td>34.5%, n=1</td>" in prediction


Expand Down Expand Up @@ -1426,7 +1426,7 @@ def test_zoom_image(example_image, zoom):
],
(
'<table><tbody><tr><td rowspan="2">two row</td><td colspan="2">two '
"cols</td></tr><tr><td></td><td>sub cell 1</td><td>sub cell 2</td></tr>"
"cols</td></tr><tr><td>sub cell 1</td><td>sub cell 2</td></tr>"
"</tbody></table>"
),
id="various spans, no headers",
Expand Down

0 comments on commit f4664cf

Please sign in to comment.