Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
test: resolve unit tests
Signed-off-by: jupyterjazz <[email protected]>
  • Loading branch information
jupyterjazz committed Jun 27, 2023
commit 70d4970aabe5355f6a5cea42f657cd24a0c8f30b
4 changes: 2 additions & 2 deletions docarray/documents/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class MultiModalDoc(BaseDoc):
```python
from docarray.documents import TextDoc

doc = TextDoc(text='This is the main text', url='exampleurl.com')
doc2 = TextDoc(text='This is the main text', url='exampleurl.com')
doc = TextDoc(text='This is the main text', url='exampleurl.com/file')
doc2 = TextDoc(text='This is the main text', url='exampleurl.com/file')

doc == 'This is the main text' # True
doc == doc2 # True
Expand Down
2 changes: 1 addition & 1 deletion tests/index/weaviate/test_index_get_del_weaviate.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class MyMultiModalDoc(BaseDoc):


def test_index_document_with_bytes(weaviate_client):
doc = ImageDoc(id="1", url="www.foo.com", bytes_=b"foo")
doc = ImageDoc(id="1", url="www.foo.com/file", bytes_=b"foo")

index = WeaviateDocumentIndex[ImageDoc]()
index.index([doc])
Expand Down