Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Nov 13, 2024
1 parent 603f1c4 commit dcf3852
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/test_config/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit dcf3852

Please sign in to comment.