Skip to content

Commit e699397

Browse files
remove commented out test referencing nltk
1 parent 0298730 commit e699397

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/unit_tests/utils/test_docs_utils.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,6 @@ def test_text_splitter_split(mock_tokenizer):
4848
assert chunks[3] == "10 11 12 13 14 15 16 17"
4949

5050

51-
# @patch('nltk.data.find', side_effect=LookupError)
52-
# def test_sentence_split_nltk_download_error(mock_nltk_find):
53-
# with pytest.raises(ImportError):
54-
# sentence_split("This is a test sentence.")
55-
56-
# @patch('nltk.data.find')
57-
# def test_sentence_split(mock_nltk_find):
58-
# mock_nltk_find.return_value = True
59-
# result = sentence_split("This is a test sentence.")
60-
# assert len(result) == 1
61-
# assert result[0] == "This is a test sentence."
62-
63-
6451
def test_prompt_template_token_length(mock_tokenizer, mock_prompt_template):
6552
text_splitter = TextSplitter()
6653
length = text_splitter.prompt_template_token_length(mock_prompt_template)

0 commit comments

Comments
 (0)