Remove useless mock side effect
This commit is contained in:
parent
710a2cef98
commit
e7b853c667
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue