mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-10-31 09:49:48 +00:00 
			
		
		
		
	 00e1dd6eb8
			
		
	
	
		00e1dd6eb8
		
			
		
	
	
	
	
		
			
			* rearrange code * fix tests * relnote * merge test modules * remove extra * rearrange draw tests * forgot * remove unused import
		
			
				
	
	
		
			12 lines
		
	
	
		
			402 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			402 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
 | |
| #
 | |
| # SPDX-License-Identifier: Apache-2.0
 | |
| from haystack.testing.sample_components import Repeat
 | |
| from haystack.core.serialization import component_to_dict, component_from_dict
 | |
| 
 | |
| 
 | |
| def test_repeat_default():
 | |
|     component = Repeat(outputs=["one", "two"])
 | |
|     results = component.run(value=10)
 | |
|     assert results == {"one": 10, "two": 10}
 |