Skip to content

Commit

Permalink
fixed the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM committed Sep 18, 2024
1 parent 57a34b6 commit 25dbb4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/data/redp5110.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/redp5110.pages.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tests/verify_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ def verify_tables(doc_pred: DsDocument, doc_true: DsDocument):
for i, row in enumerate(true_item.data):
for j, col in enumerate(true_item.data[i]):

print("true: ", true_item.data[i][j])
print("pred: ", pred_item.data[i][j])
#print("true: ", true_item.data[i][j])
#print("pred: ", pred_item.data[i][j])

assert (
true_item.data[i][j].text == pred_item.data[i][j].text
), "table-cell does not have the same text"

assert (
true_item.data[i][j].type == pred_item.data[i][j].type
true_item.data[i][j].obj_type == pred_item.data[i][j].obj_type
), "table-cell does not have the same type"

return True
Expand Down

0 comments on commit 25dbb4e

Please sign in to comment.