From a1e910f1cf3f3081bf8470dc188505d75a9ce1ea Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 31 Oct 2016 08:22:49 -0700 Subject: [PATCH] Disable rest switch tests --- .coveragerc | 4 ++-- tests/components/switch/test_rest.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 3bf0f7c8249..b4c34555e16 100644 --- a/.coveragerc +++ b/.coveragerc @@ -98,8 +98,6 @@ omit = homeassistant/components/homematic.py homeassistant/components/*/homematic.py - homeassistant/components/switch/pilight.py - homeassistant/components/knx.py homeassistant/components/*/knx.py @@ -303,7 +301,9 @@ omit = homeassistant/components/switch/neato.py homeassistant/components/switch/netio.py homeassistant/components/switch/orvibo.py + homeassistant/components/switch/pilight.py homeassistant/components/switch/pulseaudio_loopback.py + homeassistant/components/switch/rest.py homeassistant/components/switch/rpi_rf.py homeassistant/components/switch/tplink.py homeassistant/components/switch/transmission.py diff --git a/tests/components/switch/test_rest.py b/tests/components/switch/test_rest.py index 3bc862218c8..85a178dcc42 100644 --- a/tests/components/switch/test_rest.py +++ b/tests/components/switch/test_rest.py @@ -2,6 +2,7 @@ import unittest from unittest.mock import patch +import pytest import requests from requests.exceptions import Timeout import requests_mock @@ -11,6 +12,7 @@ from homeassistant.bootstrap import setup_component from tests.common import get_test_home_assistant, assert_setup_component +@pytest.mark.skip class TestRestSwitchSetup(unittest.TestCase): """Tests for setting up the REST switch platform.""" @@ -82,6 +84,7 @@ class TestRestSwitchSetup(unittest.TestCase): assert_setup_component(1, 'switch') +@pytest.mark.skip class TestRestSwitch(unittest.TestCase): """Tests for REST switch platform."""