From dcf38528c15e049693c76a086e1bcb627c543a50 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:37:53 +0100 Subject: [PATCH] . --- tests/test_config/test_config.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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'])