From 789e524de3112b02927becdab787b23936cc90f4 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Mon, 30 Oct 2023 11:25:54 +0100 Subject: [PATCH] remove leftovers from 1.18 (#6196) --- test/nodes/test_file_converter.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/test/nodes/test_file_converter.py b/test/nodes/test_file_converter.py index d1bbb2fc1b..c61ed90c46 100644 --- a/test/nodes/test_file_converter.py +++ b/test/nodes/test_file_converter.py @@ -25,8 +25,6 @@ TikaConverter, ) -from ..conftest import fail_at_version - @pytest.mark.tika @pytest.mark.parametrize("Converter", [PDFToTextConverter, TikaConverter]) @@ -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):