mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
cli: miscellaneous IReporter removals (#8436)
* certbot delete: use undecorated print * certbot revoke: use undecorated print * certbot revoke: remove ireporter usages * eff: remove IReporter usages * certbot unregister: remove IReporter usage * certbot update_account: remove IReporter usages * certbot run: remove IReporter in duplicate prompt * fix test_revoke_multiple_lineages
This commit is contained in:
@@ -384,16 +384,14 @@ class SuccessRevocationTest(unittest.TestCase):
|
||||
success_revocation(path)
|
||||
|
||||
@test_util.patch_get_utility("certbot.display.ops.z_util")
|
||||
def test_success_revocation(self, mock_util):
|
||||
mock_util().notification.return_value = None
|
||||
@mock.patch("certbot.display.util.notify")
|
||||
def test_success_revocation(self, mock_notify, unused_mock_util):
|
||||
path = "/path/to/cert.pem"
|
||||
self._call(path)
|
||||
mock_util().notification.assert_called_once_with(
|
||||
mock_notify.assert_called_once_with(
|
||||
"Congratulations! You have successfully revoked the certificate "
|
||||
"that was located at {0}{1}{1}".format(
|
||||
path,
|
||||
os.linesep), pause=False)
|
||||
self.assertTrue(path in mock_util().notification.call_args[0][0])
|
||||
"that was located at {0}.".format(path)
|
||||
)
|
||||
|
||||
|
||||
class ValidatorTests(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user