Remove flaky wol test that didn't test anything (#39571)

This commit is contained in:
Paulus Schoutsen 2020-09-02 11:50:00 +02:00 committed by GitHub
parent d5bcafaefd
commit 78b0837cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,16 +101,6 @@ class TestWolSwitch(unittest.TestCase):
state = self.hass.states.get("switch.wake_on_lan")
assert STATE_ON == state.state
@patch("wakeonlan.send_magic_packet", new=send_magic_packet)
@patch("subprocess.call", new=call)
def test_minimal_config(self):
"""Test with minimal config."""
assert setup_component(
self.hass,
switch.DOMAIN,
{"switch": {"platform": "wake_on_lan", "mac": "00-01-02-03-04-05"}},
)
@patch("wakeonlan.send_magic_packet", new=send_magic_packet)
@patch("subprocess.call", new=call)
def test_broadcast_config_ip_and_port(self):