Skip to content

Commit

Permalink
Add test for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperlukawski committed Sep 13, 2023
1 parent 7ecfac6 commit b463f04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/qdrant_haystack/document_stores/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@ def test_delete_qdrant_doc_store_does_not_throw_exceptions():
)
del document_store
assert True


def test_passing_api_key():
"""
Test that passing api key propagates as rest headers. It simply checks if the
exception thrown by QdrantClient is ResponseHandlingException, as it means that
the initialization went fine.
:return:
"""
with pytest.raises(ResponseHandlingException):
QdrantDocumentStore("http://localhost:6333", api_key="test")

0 comments on commit b463f04

Please sign in to comment.