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
Next Next commit
test: resolve tests
Signed-off-by: jupyterjazz <[email protected]>
  • Loading branch information
jupyterjazz committed Jun 26, 2023
commit fbe7d7c527506cbf7fdecc230fb3463d28423a47
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.txt')
doc2 = TextDoc(text='This is the main text', url='exampleurl.com/file.txt')

doc == 'This is the main text' # True
doc == doc2 # True
Expand Down
2 changes: 1 addition & 1 deletion tests/units/typing/url/test_text_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_load(url, expected_beginning):
uri = parse_obj_as(TextUrl, url)

txt = uri.load()
assert txt.startswith(expected_beginning)
assert expected_beginning in txt


@pytest.mark.slow
Expand Down