mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-28 10:26:27 +00:00
Remove redundant test fixture
This commit is contained in:
parent
200bb4bafd
commit
01ff66dfd6
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user