From f06fef630df656adad9faa74894f3e065c43bde2 Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Thu, 14 Nov 2024 19:28:45 +0800 Subject: [PATCH] fix: typo in test Signed-off-by: yihong0618 --- .../core/workflow/nodes/test_document_extractor_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 6c4caec25f70d2..1a550ec5309aa3 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)