Ran
|
Jobs
18
|
Files
6
|
Run time
2s
|
Badge
Embed ▾
README BADGES
|
push
github
Feat: internal events and rules (#158) * Introducing events and rules. * Fix class syntax. * Fix class syntax. * Without Events class, updating test for initial settings. * Integrating startup rule. * Renaming turn_off_timers to just timers. * Draft implementation of handle_plugin_event and toggle_relay. * Changing timers into a list of objects. * Extracting cancel_timers(). * Replacing turn_off_relay with toggle_relay. * Replacing turn_on_relay with toggle_relay(). * Replacing print_stopped and print_started with handle_plugin_event. * Ref: using match-case syntax for on_event. * Revert "Ref: using match-case syntax for on_event." This reverts commit 3ea65aeeb. * Replacing print_stopped and print_started with handle_plugin_event (2). * Minor: updating todos. * Updating implementation for on_after_startup(). * Fix: todo comment. * toggle_relay(): executes command based on the result of toggling. * toggle_relay() handle target None. * Reusing toggle_relay() in update_relay(). * Fix code style. * Updating cases for test_handle_plugin_event(). * Ref: using toggle_relay() instead of update_relay(). * Bumping the settings version. * Migration script for v2-v3. * Ref: simpler migration. * Sample test for migration script. * Testing more cases of v2-v3 migration. * Completing the coverage. * Fix tests descriptions. * Introducing timer reason and improving test_handle_plugin_event. * Ref: renaming timers to tasks, since timer is a prop of task. * Ref: minor: one line init for self.model. * Removing todo: toggle_relay() should not call update_ui(). * Ref: renaming cancel_timers to cancel_tasks. * Testing cancel_tasks method. * Fix and improvement for cancel_tasks: only for specified relay. * Minor: param naming. * Ref: task.reason -> task.owner. * Future: add CANCELLATION_EXCEPTIONS. * UI draft for initia... (continued)
11 of 11 branches covered (100.0%)
Branch coverage included in aggregate %.
85 of 85 new or added lines in 3 files covered. (100.0%)
310 of 310 relevant lines covered (100.0%)
15.28 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|