mirror of
https://github.com/certbot/certbot.git
synced 2026-01-21 19:01:07 +03:00
Mock account not client
This commit is contained in:
@@ -70,12 +70,12 @@ class ReportNewAccountTest(unittest.TestCase):
|
||||
from letsencrypt.account import report_new_account
|
||||
report_new_account(self.acc, self.config)
|
||||
|
||||
@mock.patch("letsencrypt.client.zope.component.queryUtility")
|
||||
@mock.patch("letsencrypt.account.zope.component.queryUtility")
|
||||
def test_no_reporter(self, mock_zope):
|
||||
mock_zope.return_value = None
|
||||
self._call()
|
||||
|
||||
@mock.patch("letsencrypt.client.zope.component.queryUtility")
|
||||
@mock.patch("letsencrypt.account.zope.component.queryUtility")
|
||||
def test_it(self, mock_zope):
|
||||
self._call()
|
||||
call_list = mock_zope().add_message.call_args_list
|
||||
|
||||
Reference in New Issue
Block a user