Remove useless mock side effect

This commit is contained in:
Thaynã Moretti 2020-09-02 22:16:58 -03:00
parent 710a2cef98
commit e7b853c667

View file

@ -35,10 +35,7 @@ class PublicIPTest(TestCase):
assert widget(module).full_text() == 'n/a' assert widget(module).full_text() == 'n/a'
@mock.patch('util.location.public_ip') def test_interval_seconds(self):
def test_interval_seconds(self, public_ip_mock):
public_ip_mock.side_effect = Exception
module = build_module() module = build_module()
assert module.parameter('interval') == 3600 assert module.parameter('interval') == 3600