mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 00:02:14 -04:00
fix test mock after moving getUtility call
This commit is contained in:
parent
b854d10795
commit
55e86983e7
1 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,9 @@ class AuthenticatorTest(unittest.TestCase):
|
|||
self.assertTrue(all(issubclass(pref, challenges.Challenge)
|
||||
for pref in self.auth.get_chall_pref("foo.com")))
|
||||
|
||||
def test_perform_empty(self):
|
||||
@mock.patch("certbot.plugins.manual.zope.component.getUtility")
|
||||
def test_perform_empty(self, mock_interaction):
|
||||
mock_interaction().yesno.return_value = True
|
||||
self.assertEqual([], self.auth.perform([]))
|
||||
|
||||
@mock.patch("certbot.plugins.manual.zope.component.getUtility")
|
||||
|
|
|
|||
Loading…
Reference in a new issue