File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff 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- 
6451def  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 )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments