mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
Zero mock warning call count after setting three checkpoints
_setup_three_checkpoints may generate warnings that are not being tested in test_rollback_too_many; just the ones directly from rollback_checkpoints are.
This commit is contained in:
@@ -362,8 +362,8 @@ class TestFullCheckpointsReverter(unittest.TestCase):
|
||||
self.assertEqual(mock_logger.warning.call_count, 1)
|
||||
|
||||
# Test Generic warning
|
||||
mock_logger.warning.call_count = 0
|
||||
self._setup_three_checkpoints()
|
||||
mock_logger.warning.call_count = 0
|
||||
self.reverter.rollback_checkpoints(4)
|
||||
self.assertEqual(mock_logger.warning.call_count, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user