diff --git a/tests/test_config/test_config.py b/tests/test_config/test_config.py index 8c391487..7ff98328 100644 --- a/tests/test_config/test_config.py +++ b/tests/test_config/test_config.py @@ -63,14 +63,15 @@ def test_default_file() -> None: def test_migrate(test_logs: LogCollector) -> None: - text = ''' - subscribe: - qos: 0 # Default QoS for subscribing - topics: - - - '#' - - - publish: - ''' + text = ( + '\n' + ' subscribe:\n' + ' qos: 0 # Default QoS for subscribing\n' + ' topics:\n' + " - - '#'\n" + ' - \n' + ' publish:\n' + ) obj = yaml_safe.load(text) Subscribe.model_validate(obj['subscribe'])