mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Remove test for nonexistent warning
This commit is contained in:
parent
72678ce2a1
commit
d9f7f375ff
1 changed files with 0 additions and 9 deletions
|
|
@ -613,15 +613,6 @@ class EnhanceConfigTest(ClientTestCommon):
|
|||
self._test_with_already_existing()
|
||||
self.assertFalse(mock_log.warning.called)
|
||||
|
||||
@mock.patch("certbot._internal.client.enhancements.ask")
|
||||
@mock.patch("certbot._internal.client.logger")
|
||||
def test_warn_redirect(self, mock_log, mock_ask):
|
||||
self.config.redirect = None
|
||||
mock_ask.return_value = False
|
||||
self._test_with_already_existing()
|
||||
self.assertTrue(mock_log.warning.called)
|
||||
self.assertTrue("disable" in mock_log.warning.call_args[0][0])
|
||||
|
||||
def test_no_ask_hsts(self):
|
||||
self.config.hsts = True
|
||||
self._test_with_all_supported()
|
||||
|
|
|
|||
Loading…
Reference in a new issue