Remove redundant test fixture

This commit is contained in:
Tanay Soni 2020-08-17 14:19:38 +02:00
parent 200bb4bafd
commit 01ff66dfd6

View File

@ -52,20 +52,6 @@ def xpdf_fixture():
You can download for your OS from here: https://www.xpdfreader.com/download.html.""" 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"]) @pytest.fixture(params=["elasticsearch", "faiss", "memory", "sql"])
def document_store(request, test_docs_xs, elasticsearch_fixture): def document_store(request, test_docs_xs, elasticsearch_fixture):