Skip to content

Commit

Permalink
Fix test_snap_revert to work with Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pieqq committed Sep 25, 2023
1 parent 0fddec7 commit 47f4cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/base/tests/test_snap_update_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,5 +245,5 @@ def test_snap_revert(self, mock_snap_info, mock_snapd_revert):
}
with patch("builtins.open", mock_open(read_data=mock_file_data)) as m:
srr.snap_revert()
mock_snapd_revert.assert_called()
self.assertTrue(mock_snapd_revert.called)
m.assert_called_with("/test/info", "w")

0 comments on commit 47f4cc2

Please sign in to comment.