mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
add file upload adapter and make index() return refreshed document
This commit is contained in:
parent
86ecb82c6e
commit
cad400be1b
6 changed files with 82 additions and 37 deletions
|
|
@ -22,18 +22,6 @@ def test_valid_document_created_with_required_fields():
|
|||
assert doc.created_by_id == "00000000-0000-0000-0000-000000000001"
|
||||
|
||||
|
||||
def test_omitting_connector_id_raises():
|
||||
with pytest.raises(ValidationError):
|
||||
ConnectorDocument(
|
||||
title="Task",
|
||||
source_markdown="## Content",
|
||||
unique_id="task-1",
|
||||
document_type=DocumentType.CLICKUP_CONNECTOR,
|
||||
search_space_id=1,
|
||||
created_by_id="00000000-0000-0000-0000-000000000001",
|
||||
)
|
||||
|
||||
|
||||
def test_omitting_created_by_id_raises():
|
||||
with pytest.raises(ValidationError):
|
||||
ConnectorDocument(
|
||||
|
|
@ -92,19 +80,6 @@ def test_empty_created_by_id_raises():
|
|||
)
|
||||
|
||||
|
||||
def test_zero_connector_id_raises():
|
||||
with pytest.raises(ValidationError):
|
||||
ConnectorDocument(
|
||||
title="Task",
|
||||
source_markdown="## Content",
|
||||
unique_id="task-1",
|
||||
document_type=DocumentType.CLICKUP_CONNECTOR,
|
||||
search_space_id=1,
|
||||
connector_id=0,
|
||||
created_by_id="00000000-0000-0000-0000-000000000001",
|
||||
)
|
||||
|
||||
|
||||
def test_zero_search_space_id_raises():
|
||||
with pytest.raises(ValidationError):
|
||||
ConnectorDocument(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue