mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-23 00:42:28 +00:00

* rearrange code * fix tests * relnote * merge test modules * remove extra * rearrange draw tests * forgot * remove unused import
16 lines
527 B
Python
16 lines
527 B
Python
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
import logging
|
|
|
|
from haystack.testing.sample_components import Greet
|
|
from haystack.core.serialization import component_to_dict, component_from_dict
|
|
|
|
|
|
def test_greet_message(caplog):
|
|
caplog.set_level(logging.WARNING)
|
|
component = Greet()
|
|
results = component.run(value=10, message="Hello, that's {value}", log_level="WARNING")
|
|
assert results == {"value": 10}
|
|
assert "Hello, that's 10" in caplog.text
|