Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
VikParuchuri committed Jan 24, 2025
1 parent d3d08c3 commit 5fc0546
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/processors/test_llm_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_llm_table_processor(pdf_document, detection_model, table_rec_model, rec
<td>Column 4</td>
</tr>
<tr>
<td>Value 1</td>
<td>Value 1 <math>x</math></td>
<td>Value 2</td>
<td>Value 3</td>
<td>Value 4</td>
Expand Down Expand Up @@ -93,6 +93,9 @@ def test_llm_table_processor(pdf_document, detection_model, table_rec_model, rec
table_cells = tables[0].contained_blocks(pdf_document, (BlockTypes.TableCell,))
assert table_cells[0].text == "Column 1"

markdown = MarkdownRenderer()(pdf_document).markdown
assert "Value 1 $x$" in markdown


@pytest.mark.filename("adversarial.pdf")
@pytest.mark.config({"page_range": [0]})
Expand Down

0 comments on commit 5fc0546

Please sign in to comment.