mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Correct reverter display methods
This commit is contained in:
@@ -126,7 +126,7 @@ class Reverter(object):
|
||||
|
||||
output.append(os.linesep)
|
||||
|
||||
zope.component.getUtility(interfaces.IDisplay).generic_notification(
|
||||
zope.component.getUtility(interfaces.IDisplay).notification(
|
||||
os.linesep.join(output), display_util.HEIGHT)
|
||||
|
||||
def add_to_temp_checkpoint(self, save_files, save_notes):
|
||||
|
||||
@@ -339,7 +339,7 @@ class TestFullCheckpointsReverter(unittest.TestCase):
|
||||
self.reverter.view_config_changes()
|
||||
|
||||
# Make sure notification is output
|
||||
self.assertEqual(mock_output().generic_notification.call_count, 1)
|
||||
self.assertEqual(mock_output().notification.call_count, 1)
|
||||
|
||||
@mock.patch("letsencrypt.client.reverter.logging")
|
||||
def test_view_config_changes_no_backups(self, mock_logging):
|
||||
|
||||
Reference in New Issue
Block a user