mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Correct reverter display methods
This commit is contained in:
parent
71dc5435c9
commit
0bc5c8a162
2 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue