From e7b853c667b5785355214380954c83b843c46f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thayn=C3=A3=20Moretti?= Date: Wed, 2 Sep 2020 22:16:58 -0300 Subject: [PATCH] Remove useless mock side effect --- tests/modules/contrib/test_publicip.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/modules/contrib/test_publicip.py b/tests/modules/contrib/test_publicip.py index 891cfc8..9584bd7 100644 --- a/tests/modules/contrib/test_publicip.py +++ b/tests/modules/contrib/test_publicip.py @@ -35,10 +35,7 @@ class PublicIPTest(TestCase): assert widget(module).full_text() == 'n/a' - @mock.patch('util.location.public_ip') - def test_interval_seconds(self, public_ip_mock): - public_ip_mock.side_effect = Exception - + def test_interval_seconds(self): module = build_module() assert module.parameter('interval') == 3600