test: Add langdetect installation to e2e tests (#6327)

* Add langdetect installation to e2e tests

* compare doc content and id only
This commit is contained in:
Julian Risch
2023-11-17 10:12:05 +01:00
committed by GitHub
parent 6dda6e5b2d
commit 1c85e44156
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ jobs:
run: docker run -d -p 8080:8080 --name haystack_test_weaviate --env AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED='true' --env PERSISTENCE_DATA_PATH='/var/lib/weaviate' --env ENABLE_EXPERIMENTAL_BM25='true' --env DISK_USE_READONLY_PERCENTAGE='95' semitechnologies/weaviate:1.17.2
- name: Install Haystack
run: pip install -e .[inference,elasticsearch7,faiss,weaviate,opensearch,dev,pdf,preview]
run: pip install -e .[inference,elasticsearch7,faiss,weaviate,opensearch,dev,pdf,preview] langdetect
# FIXME caching prevents PRs from running the e2e tests properly
@@ -64,4 +64,5 @@ def test_extractive_qa_pipeline(tmp_path):
assert hasattr(answer, "document")
# the answer is extracted from the correct document
if answer.document is not None:
assert answer.document == doc
assert answer.document.content == doc.content
assert answer.document.id == doc.id