From 00aa55ee31c40fe2682bfc62fdf02a6b895c05f2 Mon Sep 17 00:00:00 2001 From: sudoskys Date: Sat, 6 Jul 2024 15:52:43 +0800 Subject: [PATCH] :recycle: test: remove unnecessary test_parse function from test_detect file https://github.com/LlmKira/fast-langdetect/issues/2 --- tests/test_detect.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_detect.py b/tests/test_detect.py index 3929ad8..0227282 100644 --- a/tests/test_detect.py +++ b/tests/test_detect.py @@ -16,8 +16,3 @@ def test_detect_totally(): assert detect_langs("hello world") == "EN", "ft_detect error" assert detect_langs("你好世界") == "ZH", "ft_detect error" assert detect_langs("こんにちは世界") == "JA", "ft_detect error" - - -def test_parse(): - from fast_langdetect import parse_sentence - assert parse_sentence("hello world") == [{"text": "hello world", "lang": "EN", "length": 11}], "ft_detect error"