Skip to content

Commit

Permalink
Improve mock with CommandResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-O committed Aug 28, 2023
1 parent b9110ed commit de6e98c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/targets/test_ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import pytest

from buildozer.buildops import CommandResult
from buildozer.exceptions import BuildozerCommandException
from buildozer.targets.ios import TargetIos
from tests.targets.utils import (
Expand Down Expand Up @@ -183,7 +184,7 @@ def test_unlock_keychain_wrong_password(self):
m_getpass.return_value = "password"
# the `security unlock-keychain` command returned an error
# hence we'll get prompted to enter the password
m_cmd.return_value = (None, None, 123)
m_cmd.return_value = CommandResult(None, None, 123)
target._unlock_keychain()
# fmt: on
assert m_getpass.call_args_list == [
Expand Down

0 comments on commit de6e98c

Please sign in to comment.