Skip to content

Commit

Permalink
move ruff ignore error
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Nov 20, 2023
1 parent cba93b5 commit 99b80cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions document_stores/elasticsearch/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#
# SPDX-License-Identifier: Apache-2.0

# ruff: noqa: S311

import random
from typing import List
from unittest.mock import patch
Expand Down Expand Up @@ -319,7 +317,10 @@ def test_embedding_retrieval_pagination(self, docstore: ElasticsearchDocumentSto
Test that handling of pagination works as expected, when the matching documents are > 10.
"""

docs = [Document(content=f"Document {i}", embedding=[random.random() for _ in range(4)]) for i in range(20)]
docs = [
Document(content=f"Document {i}", embedding=[random.random() for _ in range(4)]) # noqa: S311
for i in range(20)
]

docstore.write_documents(docs)
results = docstore._embedding_retrieval(query_embedding=[0.1, 0.1, 0.1, 0.1], top_k=11, filters={})
Expand Down

0 comments on commit 99b80cd

Please sign in to comment.