mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 12:32:02 +02: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
|
from letsencrypt.account import report_new_account
|
||||||
report_new_account(self.acc, self.config)
|
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):
|
def test_no_reporter(self, mock_zope):
|
||||||
mock_zope.return_value = None
|
mock_zope.return_value = None
|
||||||
self._call()
|
self._call()
|
||||||
|
|
||||||
@mock.patch("letsencrypt.client.zope.component.queryUtility")
|
@mock.patch("letsencrypt.account.zope.component.queryUtility")
|
||||||
def test_it(self, mock_zope):
|
def test_it(self, mock_zope):
|
||||||
self._call()
|
self._call()
|
||||||
call_list = mock_zope().add_message.call_args_list
|
call_list = mock_zope().add_message.call_args_list
|
||||||
|
|||||||
Reference in New Issue
Block a user