Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integrations/weaviate/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import os
from collections.abc import Generator
from dataclasses import replace
from unittest.mock import MagicMock, patch

import pytest
Expand Down Expand Up @@ -373,7 +374,7 @@ def test_write_documents(self, document_store):
assert document_store.write_documents([doc]) == 1
assert document_store.count_documents() == 1

doc.content = "test doc 2"
doc = replace(doc, content="test doc 2")
assert document_store.write_documents([doc]) == 1
assert document_store.count_documents() == 1

Expand Down
3 changes: 2 additions & 1 deletion integrations/weaviate/tests/test_document_store_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging
from collections.abc import AsyncGenerator
from dataclasses import replace
from pathlib import Path

import pytest
Expand Down Expand Up @@ -100,7 +101,7 @@ async def test_write_documents_async(self, document_store: WeaviateDocumentStore
assert await document_store.write_documents_async([doc]) == 1
assert await document_store.count_documents_async() == 1

doc.content = "test doc 2"
doc = replace(doc, content="test doc 2")
assert await document_store.write_documents_async([doc]) == 1
assert await document_store.count_documents_async() == 1

Expand Down
Loading