Ran
|
Files
3
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
push
github
DNRY: Relay driver (#138) * Sample relay driver. * Changing the order of arguments in constructor. * Making toggle() to return the new state. * Making an import. * Making toggle() argument optional. * Add type to optional argument. * Draft test for the driver constructor. * Fix type of optional argument. * Fix unused import. * Constructed props assertions. * Add serialization test. * Testing close() method. * Test for open(). * Ref: reusing toggle method for opening and closing. * Ref: explainatory naming. * Test for get_pin_state(). * Test for is_closed(). * Testing toggle() method without argument. * Pin state assertions for toggle(). * Fix running the tests. * Fixing get pin state assertions. * Revert "Fixing get pin state assertions." This reverts commit a0e75daf8. * Check that GPIO is mocked. * runtime patching of GPIO in driver test. * Revert "runtime patching of GPIO in driver test." This reverts commit d404b7496. * Runtime patch for RPi. * Revert "Runtime patch for RPi." This reverts commit 383f4fa3c. * Mocking within test class lifecycle methods. * Revert "Mocking within test class lifecycle methods." This reverts commit 308ff39d4. * Common mocking of GPIO for all tests. * Revert "Common mocking of GPIO for all tests." This reverts commit 2c6bae554. * Reusing mocked module (temp solution). * No disabling warnings in main module init. * Integrating the driver into on_after_startup method. * Integrating the driver into API command LIST_ALL. * Integrating the driver for GET_STATUS command. * Fix lint. * Integrating the driver into update_relay method. * Integrating the driver into turn_off_pin and turn_on_pin methods. * Integrating the driver into update_ui metho... (continued)
225 of 225 relevant lines covered (100.0%)
1.0 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|