Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mpangrazzi committed Dec 3, 2024
1 parent dad3f36 commit c00dba4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions integrations/mongodb_atlas/tests/test_fulltext_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from typing import List, Union
from unittest.mock import MagicMock

from haystack import Document
import pytest
from haystack import Document

from haystack_integrations.document_stores.mongodb_atlas import MongoDBAtlasDocumentStore

Expand All @@ -30,12 +30,14 @@ def document_store(self) -> MongoDBAtlasDocumentStore:
@pytest.fixture(autouse=True)
def setup_teardown(self, document_store):
document_store.collection.delete_many({})
document_store.write_documents([
Document(content="The quick brown fox chased the dog", meta={"meta_field": "right_value"}),
Document(content="The fox was brown", meta={"meta_field": "right_value"}),
Document(content="The lazy dog"),
Document(content="fox fox fox"),
])
document_store.write_documents(
[
Document(content="The quick brown fox chased the dog", meta={"meta_field": "right_value"}),
Document(content="The fox was brown", meta={"meta_field": "right_value"}),
Document(content="The lazy dog"),
Document(content="fox fox fox"),
]
)

yield

Expand Down

0 comments on commit c00dba4

Please sign in to comment.