From 377b146ceefbb3713428089dc59d969ecbd43899 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Fri, 7 Apr 2023 10:00:39 -0700 Subject: [PATCH] Revert "fix mock location" This reverts commit 561037bfadd1f19675d03cefaf1214a52c433816. --- certbot-apache/certbot_apache/_internal/tests/autohsts_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-apache/certbot_apache/_internal/tests/autohsts_test.py b/certbot-apache/certbot_apache/_internal/tests/autohsts_test.py index 2d1340a58..4d7d2ec68 100644 --- a/certbot-apache/certbot_apache/_internal/tests/autohsts_test.py +++ b/certbot-apache/certbot_apache/_internal/tests/autohsts_test.py @@ -128,7 +128,7 @@ class AutoHSTSTest(util.ApacheTest): max_val def test_autohsts_update_noop(self): - with mock.patch("certbot_apache._internal.configurator.time.time") as mock_time: + with mock.patch("time.time") as mock_time: # Time 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())