mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
fix test mock after moving getUtility call
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user