Ran
|
Files
6
|
Run time
0s
|
Badge
Embed ▾
README BADGES
|
push
github
API: The `update` command: `target` parameter (#234) * api can now accept "cmd":"off" or "cmd":"on" * added documentation and made changes as reqeuested * Revert "added documentation and made changes as reqeuested" This reverts commit 6f8d7a77f. * Made changes and updated documentation * changing permissions. hopefully it sticks this time * added unit tests * Fixing trailing whitespace issues. * Fixing return statement issue: replacing with raising an Exception. * Updating the edge case test. * Minor: specifying the return type of toggle_relay() method. * Ref: removing unused statement. * Ref: ensuring the type of the target argument for handle_update_command() method. * Apply suggestions to README from code review * Readme: adjusting the documentation. * Readme: notice on target argument. * Removing redundant result from the fauly response payload. * Restoring the asserting on actual Relay::toggle() call. * Minor: fixing and explaining the test cases. * Handling possible exception of toggle_relay() method called by handle_update_command(). * Fixing the CodeQL warning. * Fixing the CodeQL warning (2). * Minor: message adjustment. * Testing the edge case. * Ref: minor, naming. * Readme: minor, grammar. --------- Co-authored-by: Anna Bocharova <robin_tail@me.com>
373 of 373 relevant lines covered (100.0%)
1.0 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|