Skip RFXtrx tests unless RFXTRX=RUN (#3625)
* Skip RFXtrx tests unless RFXTRX=RUN * Remove my previous hacks to slightly speed up rfxtrx * Exclude RFXTRX tests from coverage * Remove unused import in rfxtrx tstt * Add close connection back to RFXtrx tests * Typo
This commit is contained in:
1 parent
892bbdc2dd
commit
3e24a35c1e
7 files changed
+18
-16
No files matched your search
@@ -10,7 +10,7 @@ from homeassistant.const import TEMP_CELSIUS
|
||||
from tests.common import get_test_home_assistant
|
||||
|
||||
|
||||
@pytest.mark.skipif("os.environ.get('RFXTRX') == 'SKIP'")
|
||||
@pytest.mark.skipif("os.environ.get('RFXTRX') != 'RUN'")
|
||||
class TestSensorRfxtrx(unittest.TestCase):
|
||||
"""Test the Rfxtrx sensor platform."""
|
||||
|
||||
@@ -23,6 +23,8 @@ class TestSensorRfxtrx(unittest.TestCase):
|
||||
"""Stop everything that was started."""
|
||||
rfxtrx_core.RECEIVED_EVT_SUBSCRIBERS = []
|
||||
rfxtrx_core.RFX_DEVICES = {}
|
||||
if rfxtrx_core.RFXOBJECT:
|
||||
rfxtrx_core.RFXOBJECT.close_connection()
|
||||
self.hass.stop()
|
||||
|
||||
def test_default_config(self):
|
||||
|
||||
Reference in new issue
Block a user