Skip to content

Commit

Permalink
add assertion to installer.run()
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerluis1982 committed Apr 3, 2023
1 parent 587881a commit 7ed7c07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/installation/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2429,7 +2429,8 @@ def test_installer_does_not_write_lock_file_when_installation_fails(
locker.locked(False)

mocker.patch("poetry.installation.installer.Installer._execute", return_value=1)
installer.run()
result = installer.run()
assert result == 1 # error

assert locker._lock_data is None

Expand Down

0 comments on commit 7ed7c07

Please sign in to comment.