mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix: typo in test (#10707)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
e61242a337
commit
94fd6f6901
|
@ -140,10 +140,10 @@ def test_extract_text_from_plain_text():
|
||||||
assert text == "Hello, world!"
|
assert text == "Hello, world!"
|
||||||
|
|
||||||
|
|
||||||
def tet_extract_text_from_plain_text_non_utf8():
|
def test_extract_text_from_plain_text_non_utf8():
|
||||||
import tempfile
|
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:
|
with tempfile.NamedTemporaryFile(delete=True) as temp_file:
|
||||||
temp_file.write(non_utf8_content)
|
temp_file.write(non_utf8_content)
|
||||||
temp_file.seek(0)
|
temp_file.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user