1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00
Files
core/tests/components
jan iversen 55cdec8c4e Add test for register configuration for modbus switch (#42604)
* check for false config in modbus tests.

add call to pytest.fail() if device cannot be defined.

* correct bit error in register read.

Only LSB is to be considered for checking ON/OFF

* Add register tests for modbus switch.

Copy the coil tests to work for register tests.

* allow test coverage to control switch.py

With both register and coil test the coverage is a log higher than 50%

* Correct minor bug in handling of register in modbus switch

* Add state_on/state_off test for modbus switch

* restore modbus switch exclusion from coverage

switch file coverage is only at 72%, ideally we want either 80%+ coverage on the file or 90%+ on the component itself which is only about 83% currently with this file included. this is so we keep the overall project coverage in 90%+.

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-11-08 10:42:45 -06:00
..
2020-10-23 16:28:21 +02:00
2020-10-06 18:50:32 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-09-15 22:38:45 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-28 15:33:08 +00:00
2020-10-01 16:15:24 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-10-04 15:24:07 +02:00
2020-10-23 16:28:21 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-03 15:18:05 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-10-27 23:22:59 +01:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-29 00:52:15 +01:00
2020-10-23 16:28:21 +02:00
2020-10-23 16:28:21 +02:00
2020-10-29 09:51:48 +01:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-19 16:50:46 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-10-21 11:58:07 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-10-25 14:44:39 +01:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-23 16:28:21 +02:00
2020-10-25 12:44:26 +01:00
2020-08-27 13:56:20 +02:00
2020-10-13 15:37:01 +02:00
2020-11-01 11:05:55 -05:00
2020-09-21 10:41:30 -05:00
2020-10-23 16:28:21 +02:00
2020-08-27 13:56:20 +02:00