Skip to content

Commit

Permalink
better test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Jul 9, 2023
1 parent 74a3a28 commit cdd58aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_plugin_pushy.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@
'notify_response': False,
'requests_response_text': {'success': False}
}),
('pushy://apikey/topic', {
# No Device/Topic specified
'instance': NotifyPushy,
# Expected notify() response False because the success flag
# was set to false
'notify_response': False,
# Invalid JSON data
'requests_response_text': '}'
}),
('pushy://apikey/%20(', {
# Invalid topic specified
'instance': NotifyPushy,
Expand Down

0 comments on commit cdd58aa

Please sign in to comment.