feat(workflow): Support JSON type in document extractor node (#9899)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
dd3ac7a2c9
commit
216442ddc1
2 changed files with 41 additions and 33 deletions
|
|
@ -125,7 +125,7 @@ def test_run_extract_text(
|
|||
result = document_extractor_node._run()
|
||||
|
||||
assert isinstance(result, NodeRunResult)
|
||||
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED
|
||||
assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED, result.error
|
||||
assert result.outputs is not None
|
||||
assert result.outputs["text"] == expected_text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue