Skip to content

Commit

Permalink
Fix: revision should be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Sep 6, 2024
1 parent af115aa commit b8d95a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def test_can_run_snap_commands(self, mock_subprocess: MagicMock):
foo.state = snap.SnapState.Absent
mock_subprocess.assert_called_with(["snap", "remove", "foo"], universal_newlines=True)

foo.ensure(snap.SnapState.Latest, revision=123)
foo.ensure(snap.SnapState.Latest, revision="123")
mock_subprocess.assert_called_with(
["snap", "install", "foo", "--classic", '--revision="123"'], universal_newlines=True
)
Expand Down

0 comments on commit b8d95a5

Please sign in to comment.