Skip to content

Commit

Permalink
remove leftovers from 1.18 (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci authored Oct 30, 2023
1 parent 6bddc5c commit 789e524
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions test/nodes/test_file_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
TikaConverter,
)

from ..conftest import fail_at_version


@pytest.mark.tika
@pytest.mark.parametrize("Converter", [PDFToTextConverter, TikaConverter])
Expand Down Expand Up @@ -179,32 +177,6 @@ def test_pdf_parallel_ocr(Converter, samples_path):
assert pages[-1] == "This is the page 50 of the document."


@fail_at_version(1, 18)
def test_deprecated_encoding():
with pytest.warns(DeprecationWarning):
PDFToTextConverter(encoding="utf-8")


@fail_at_version(1, 18)
def test_deprecated_encoding_in_convert_method(samples_path):
converter = PDFToTextConverter()
with pytest.warns(DeprecationWarning):
converter.convert(file_path=samples_path / "pdf" / "sample_pdf_1.pdf", encoding="utf-8")


@fail_at_version(1, 18)
def test_deprecated_keep_physical_layout():
with pytest.warns(DeprecationWarning):
PDFToTextConverter(keep_physical_layout=True)


@fail_at_version(1, 18)
def test_deprecated_keep_physical_layout_in_convert_method(samples_path):
converter = PDFToTextConverter()
with pytest.warns(DeprecationWarning):
converter.convert(file_path=samples_path / "pdf" / "sample_pdf_1.pdf", keep_physical_layout=True)


@pytest.mark.tika
@pytest.mark.parametrize("Converter", [PDFToTextConverter, TikaConverter])
def test_table_removal(Converter, samples_path):
Expand Down

0 comments on commit 789e524

Please sign in to comment.