Skip to content

Commit fb4ca7e

Browse files
committed
chore: formating fixed
1 parent 6965d83 commit fb4ca7e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

libs/partners/qdrant/tests/integration_tests/async_api/test_qdrant_vector_store_search.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,27 +104,25 @@ async def test_async_similarity_search_with_consistency(location: str) -> None:
104104
await vec_store.aadd_texts(texts)
105105

106106
# Test with different consistency levels
107-
107+
108108
# Test with factor consistency (int)
109-
results = await vec_store.asimilarity_search(
110-
"test", k=1, consistency=1
111-
)
109+
results = await vec_store.asimilarity_search("test", k=1, consistency=1)
112110
assert len(results) <= 1
113111
if results:
114112
assert results[0].page_content == "test document"
115-
113+
116114
# Test with majority consistency
117115
results = await vec_store.asimilarity_search(
118116
"test", k=1, consistency=models.ReadConsistencyType.MAJORITY
119117
)
120118
assert len(results) <= 1
121119
if results:
122120
assert results[0].page_content == "test document"
123-
121+
124122
# Test with all consistency
125123
results = await vec_store.asimilarity_search(
126124
"test", k=1, consistency=models.ReadConsistencyType.ALL
127125
)
128126
assert len(results) <= 1
129127
if results:
130-
assert results[0].page_content == "test document"
128+
assert results[0].page_content == "test document"

0 commit comments

Comments
 (0)