diff --git a/document_stores/elasticsearch/tests/test_document_store.py b/document_stores/elasticsearch/tests/test_document_store.py index 6db73d899..1e7b3f115 100644 --- a/document_stores/elasticsearch/tests/test_document_store.py +++ b/document_stores/elasticsearch/tests/test_document_store.py @@ -2,8 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -# ruff: noqa: S311 - import random from typing import List from unittest.mock import patch @@ -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={})