mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fixed the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
57a34b6936
commit
25dbb4e2c5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user