Skip to content

Commit

Permalink
improve test_add_keyboard_interrupt_restore_content
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerluis1982 committed Apr 3, 2023
1 parent 7ed7c07 commit ce91b86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/console/commands/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,8 @@ def test_add_keyboard_interrupt_restore_content(
tester = command_tester_factory("add", poetry=poetry_with_up_to_date_lockfile)

mocker.patch(
"poetry.installation.installer.Installer.run", side_effect=KeyboardInterrupt()
"poetry.installation.installer.Installer._execute",
side_effect=KeyboardInterrupt(),
)
original_pyproject_content = poetry_with_up_to_date_lockfile.file.read()
original_lockfile_content = poetry_with_up_to_date_lockfile._locker.lock_data
Expand Down

0 comments on commit ce91b86

Please sign in to comment.