mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user