From 01ff66dfd65cbab21d35a47b0e4de1103d1c0487 Mon Sep 17 00:00:00 2001 From: Tanay Soni Date: Mon, 17 Aug 2020 14:19:38 +0200 Subject: [PATCH] Remove redundant test fixture --- test/conftest.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index 33eea3b1b..c93ce978e 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -52,20 +52,6 @@ def xpdf_fixture(): You can download for your OS from here: https://www.xpdfreader.com/download.html.""" ) -@pytest.fixture(scope="session") -def tika_fixture(): - verify_installation = run(["pdftotext"], shell=True) - if verify_installation.returncode == 127: - commands = """ wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.02.tar.gz && - tar -xvf xpdf-tools-linux-4.02.tar.gz && sudo cp xpdf-tools-linux-4.02/bin64/pdftotext /usr/local/bin""" - run([commands], shell=True) - - verify_installation = run(["pdftotext -v"], shell=True) - if verify_installation.returncode == 127: - raise Exception( - """pdftotext is not installed. It is part of xpdf or poppler-utils software suite. - You can download for your OS from here: https://www.xpdfreader.com/download.html.""" - ) @pytest.fixture(params=["elasticsearch", "faiss", "memory", "sql"]) def document_store(request, test_docs_xs, elasticsearch_fixture):