mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Mock account not client
This commit is contained in:
parent
128147af3b
commit
7cdcea4dd5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue