test_repeat.py
1 # SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 5 from haystack.testing.sample_components import Repeat 6 7 8 def test_repeat_default(): 9 component = Repeat(outputs=["one", "two"]) 10 results = component.run(value=10) 11 assert results == {"one": 10, "two": 10}