Add missing mock call for test_minimal_config (#11858)

In local testing py36 always fails on test_minimal_config on a wait
call that never completes. One difference between this test and others
in the class is the lack of a mock on `call`. With this added, the
test passes locally 100%.
pull/10865/merge
Sean Dague 2018-01-23 08:02:00 -05:00 committed by Pascal Vizeli
parent 6df1fae447
commit 73fa76d792
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ class TestWOLSwitch(unittest.TestCase):
self.assertEqual(STATE_ON, state.state)
@patch('wakeonlan.wol.send_magic_packet', new=send_magic_packet)
@patch('subprocess.call', new=call)
def test_minimal_config(self):
"""Test with minimal config."""
self.assertTrue(setup_component(self.hass, switch.DOMAIN, {