Skip to content

Commit e38df74

Browse files
committed
Fix corrupted tests
1 parent ee2d46d commit e38df74

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
@@ -209,8 +209,8 @@ def test_cli_continue_last_conversation_corrupted_file(
209209
assert capfd.readouterr().out.splitlines() == snapshot(
210210
[
211211
IsStr(),
212-
'Error loading last conversation, it is corrupted or invalid. Starting a new ',
213-
'conversation.',
212+
'Error loading last conversation, it is corrupted or invalid.',
213+
'Starting a new conversation.',
214214
'# world',
215215
]
216216
)

0 commit comments

Comments
 (0)