mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-11-04 11:49:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			288 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			288 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from pathlib import Path
 | 
						|
 | 
						|
from haystack.file_converter.docx import DocxToTextConverter
 | 
						|
 | 
						|
 | 
						|
def test_convert():
 | 
						|
    converter = DocxToTextConverter()
 | 
						|
    document = converter.convert(file_path=Path("samples/docx/sample_docx.docx"))
 | 
						|
    assert document["text"].startswith("Sample Docx File")
 |