mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
fix apache test
This commit is contained in:
parent
377b146cee
commit
d364a1319a
1 changed files with 3 additions and 3 deletions
|
|
@ -128,11 +128,11 @@ class AutoHSTSTest(util.ApacheTest):
|
|||
max_val
|
||||
|
||||
def test_autohsts_update_noop(self):
|
||||
with mock.patch("time.time") as mock_time:
|
||||
# Time mock is used to make sure that the execution does not
|
||||
with mock.patch.object(self.config, '_autohsts_save_state') as mock_save_state:
|
||||
# The mock is used to make sure that the execution does not
|
||||
# continue when no autohsts entries exist in pluginstorage
|
||||
self.config.update_autohsts(mock.MagicMock())
|
||||
assert mock_time.called is False
|
||||
assert not mock_save_state.called
|
||||
|
||||
def test_autohsts_make_permanent_noop(self):
|
||||
self.config.storage.put = mock.MagicMock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue