Skip to content

Commit f37042a

Browse files
committed
Fix corrupted tests
1 parent 18ff146 commit f37042a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pydantic_ai_slim/pydantic_ai/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def cli( # noqa: C901
218218
history = load_last_conversation() if args.continue_ else None
219219
except ValidationError:
220220
console.print(
221-
'[red]Error loading last conversation, it is corrupted or invalid. Starting a new conversation.[/red]'
221+
'[red]Error loading last conversation, it is corrupted or invalid.\nStarting a new conversation.[/red]'
222222
)
223223
history = None
224224

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def test_cli_continue_last_conversation_corrupted_file(
210210
assert capfd.readouterr().out.splitlines() == snapshot(
211211
[
212212
IsStr(),
213-
'Error loading last conversation, it is corrupted or invalid. Starting a new ',
214-
'conversation.',
213+
'Error loading last conversation, it is corrupted or invalid.',
214+
'Starting a new conversation.',
215215
'# world',
216216
]
217217
)

0 commit comments

Comments
 (0)