Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: typo in test (#10707)

yihong94fd6f6901d7
diff --git a/api/tests/unit_tests/core/workflow/nodes/test_document_extractor_node.py b/api/tests/unit_tests/core/workflow/nodes/test_document_extractor_node.py
index 6c4caec25f7..1a550ec5309 100644
--- a/api/tests/unit_tests/core/workflow/nodes/test_document_extractor_node.py
+++ b/api/tests/unit_tests/core/workflow/nodes/test_document_extractor_node.py
@@ -140,10 +140,10 @@ def test_extract_text_from_plain_text():
assert text == "Hello, world!"
-def tet_extract_text_from_plain_text_non_utf8():
+def test_extract_text_from_plain_text_non_utf8():
import tempfile
- non_utf8_content = b"Hello world\xa9." # \xA9 represents © in Latin-1
+ non_utf8_content = b"Hello, world\xa9." # \xA9 represents © in Latin-1
with tempfile.NamedTemporaryFile(delete=True) as temp_file:
temp_file.write(non_utf8_content)
temp_file.seek(0)