hass-core/tests
Teagan Glenn 122581da7f Proximity unit of measure (#2659)
* Allow multiple proximities

* Distance conversion

* Add unit of measurement and conversion to proximity

* Shorten attribute name

* Fix get unit of measurement

* Fix the km <-> m conversion

* Add type check and errors

* first path unit test around distance utility

* Fix numeric type check

* Fix conversion type-os

* Actually set the exception thrown flag

* Test for exact conversion

* More descriptive variable names

* Update method invocation to match change in method name

* Missed a couple variables

* Line continuation

* Fix linting too many return issue

* Break out proximity setup for list of proximity and for single proximity device

* Pass hass to setup function

* Check if setup succeeded for each proximity component

* Change variable name

* Break out branches in convert to avoid too many branches linting error

* Remove disable lint line

* Variables for default properties

* Combine logic

* Test loading multiple proximities for 100% code coverage on proximity component

* Unit test to reach 100%
Fail to configure proximities missing devices

* Fail first before processing

* Combine return statements

* lstrip = bad Teagan

* Utilize string formating instead of concatenation

* Fix variable reference

* Typeo

* Clean up conversion to reduce complexity

* Update unit tests to match code changes on distance util

* Test non numeric value

* Private methods, value type has already been checked.
2016-07-31 10:20:56 -07:00
..
components Proximity unit of measure (#2659) 2016-07-31 10:20:56 -07:00
fixtures Move elevation to core config and clean up HTTP mocking in tests (#2378) 2016-06-27 09:02:45 -07:00
helpers Try to deflake discovery tests 2016-07-30 19:58:14 -07:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
testing_config/custom_components Exclude tests in dependencies in test dir from pytest (#2618) 2016-07-25 08:26:07 -07:00
util Proximity unit of measure (#2659) 2016-07-31 10:20:56 -07:00
__init__.py Tweak Recorder 2016-07-11 08:56:07 -07:00
common.py Exclude tests in dependencies in test dir from pytest (#2618) 2016-07-25 08:26:07 -07:00
test_bootstrap.py Allow circular dependency with discovery (#2616) 2016-07-25 22:49:10 -07:00
test_config.py properly cleanup after config test 2016-07-03 18:24:17 -07:00
test_core.py Allow circular dependency with discovery (#2616) 2016-07-25 22:49:10 -07:00
test_loader.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_remote.py Add get_config (#2627) 2016-07-26 08:50:38 -07:00