mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-11-04 11:49:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			147 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			147 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from haystack.database.base import Document
 | 
						|
 | 
						|
 | 
						|
def test_document_data_access():
 | 
						|
    doc = Document(id=1, text="test")
 | 
						|
    assert doc.text == "test"
 |