Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
xavctn committed Dec 16, 2023
1 parent 05d718b commit f19f89b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/ocr/doctr/test_doctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def test_doctr_document():

expected = OCRDataframe(df=pl.read_csv("test_data/ocr_df.csv", separator=";").lazy())

assert result.df.collect().frame_equal(expected.df.collect())
assert result.df.collect().equals(expected.df.collect())
2 changes: 1 addition & 1 deletion tests/ocr/easyocr/test_easyocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def test_easyocr_document():

expected = OCRDataframe(df=pl.read_csv("test_data/ocr_df.csv", separator=";").lazy())

assert result.df.drop("confidence").collect(streaming=True).frame_equal(expected.df.drop("confidence").collect(streaming=True))
assert result.df.drop("confidence").collect(streaming=True).equals(expected.df.drop("confidence").collect(streaming=True))
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def test_deduplicate_cells():
result = deduplicate_cells(df_cells=df_cells).collect()
expected = pl.read_csv("test_data/expected.csv", separator=";", encoding="utf-8")

assert result.frame_equal(expected)
assert result.equals(expected)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_get_potential_cells_from_h_lines():

expected = pl.read_csv("test_data/expected_potential_cells.csv", separator=";", encoding="utf-8")

assert result.frame_equal(expected)
assert result.equals(expected)


def test_get_cells_dataframe():
Expand All @@ -32,4 +32,4 @@ def test_get_cells_dataframe():
vertical_lines=v_lines).collect()
expected = pl.read_csv("test_data/expected_ident_cells.csv", separator=";", encoding="utf-8")

assert result.frame_equal(expected.sort(['x1', 'y1', 'x2', 'y2']))
assert result.equals(expected.sort(['x1', 'y1', 'x2', 'y2']))

0 comments on commit f19f89b

Please sign in to comment.