Commit
·
77b824a
1
Parent(s):
8627bc6
Fix tests
Browse files
tests/builders/test_garbled_pdf.py
CHANGED
|
@@ -12,7 +12,7 @@ def test_garbled_pdf(pdf_document, recognition_model, table_rec_model, detection
|
|
| 12 |
|
| 13 |
table_block = pdf_document.pages[0].get_block(pdf_document.pages[0].structure[0])
|
| 14 |
assert table_block.block_type == BlockTypes.Table
|
| 15 |
-
assert table_block.structure[0] == "/page/0/Line/
|
| 16 |
|
| 17 |
table_cell = pdf_document.pages[0].get_block(table_block.structure[0])
|
| 18 |
assert table_cell.block_type == BlockTypes.Line
|
|
|
|
| 12 |
|
| 13 |
table_block = pdf_document.pages[0].get_block(pdf_document.pages[0].structure[0])
|
| 14 |
assert table_block.block_type == BlockTypes.Table
|
| 15 |
+
assert table_block.structure[0] == "/page/0/Line/10"
|
| 16 |
|
| 17 |
table_cell = pdf_document.pages[0].get_block(table_block.structure[0])
|
| 18 |
assert table_cell.block_type == BlockTypes.Line
|