Rename ha_test folder to tests

This commit is contained in:
Paulus Schoutsen 2015-01-08 20:05:12 -08:00
parent e0b424c88f
commit d4cad0b267
20 changed files with 20 additions and 21 deletions

View file

@ -7,6 +7,6 @@ install:
script:
- flake8 homeassistant --exclude bower_components,external
- pylint homeassistant
- coverage run --source=homeassistant -m unittest discover ha_test
- coverage run --source=homeassistant -m unittest discover tests
after_success:
- coveralls

View file

@ -2,4 +2,4 @@
pylint homeassistant
flake8 homeassistant --exclude bower_components,external
python3 -m unittest discover ha_test
python3 -m unittest discover tests

View file

@ -7,7 +7,7 @@ Provides a mock switch platform.
Call init before using it in your tests to ensure clean test data.
"""
from homeassistant.const import STATE_ON, STATE_OFF
from ha_test.helpers import MockToggleDevice
from tests.helpers import MockToggleDevice
DEVICES = []

View file

@ -7,7 +7,7 @@ Provides a mock switch platform.
Call init before using it in your tests to ensure clean test data.
"""
from homeassistant.const import STATE_ON, STATE_OFF
from ha_test.helpers import MockToggleDevice
from tests.helpers import MockToggleDevice
DEVICES = []

View file

@ -1,5 +1,5 @@
"""
ha_test.helper
tests.helper
~~~~~~~~~~~~~
Helper method for writing tests.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_chromecast
tests.test_component_chromecast
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests Chromecast component.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_core
tests.test_component_core
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests core compoments.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_demo
tests.test_component_demo
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests demo component.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_group
tests.test_component_group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests the group compoments.
@ -75,7 +75,7 @@ class TestComponentsDeviceTracker(unittest.TestCase):
device_tracker.DOMAIN: {CONF_PLATFORM: 'test'}
}))
def test_device_tracker(self):
def test_writing_known_devices_file(self):
""" Test the device tracker class. """
scanner = loader.get_component(
'device_tracker.test').get_scanner(None, None)
@ -117,7 +117,6 @@ class TestComponentsDeviceTracker(unittest.TestCase):
dev3 = device_tracker.ENTITY_ID_FORMAT.format('DEV3')
now = datetime.now()
nowNext = now + timedelta(seconds=ha.TIMER_INTERVAL)
nowAlmostMinGone = (now + device_tracker.TIME_DEVICE_NOT_FOUND -
timedelta(seconds=1))
nowMinGone = nowAlmostMinGone + timedelta(seconds=2)

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_group
tests.test_component_group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests the group compoments.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_http
tests.test_component_http
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests Home Assistant HTTP component does what it should do.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_switch
tests.test_component_switch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests switch component.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_sun
tests.test_component_sun
~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests Sun component.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_component_switch
tests.test_component_switch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests switch component.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_core
tests.test_core
~~~~~~~~~~~~~~~~~
Provides tests to verify that Home Assistant core works.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_helpers
tests.test_helpers
~~~~~~~~~~~~~~~~~~~~
Tests component helpers.

View file

@ -1,5 +1,5 @@
"""
ha_ha_test.test_loader
ha_tests.test_loader
~~~~~~~~~~~~~~~~~~~~~~
Provides tests to verify that we can load components.

View file

@ -1,5 +1,5 @@
"""
ha_test.remote
tests.remote
~~~~~~~~~~~~~~
Tests Home Assistant remote methods and classes.

View file

@ -1,5 +1,5 @@
"""
ha_test.test_util
tests.test_util
~~~~~~~~~~~~~~~~~
Tests Home Assistant util methods.