mirror of
https://github.com/caronc/apprise-api.git
synced 2025-08-17 18:10:57 +02:00
Added healthcheck endpoint /status (#185)
This commit is contained in:
@@ -85,7 +85,21 @@ class WebhookTests(SimpleTestCase):
|
||||
mock_post.reset_mock()
|
||||
|
||||
with override_settings(APPRISE_WEBHOOK_URL='invalid'):
|
||||
# Invalid wbhook defined
|
||||
# Invalid webhook defined
|
||||
send_webhook({})
|
||||
assert mock_post.call_count == 0
|
||||
|
||||
mock_post.reset_mock()
|
||||
|
||||
with override_settings(APPRISE_WEBHOOK_URL=None):
|
||||
# Invalid webhook defined
|
||||
send_webhook({})
|
||||
assert mock_post.call_count == 0
|
||||
|
||||
mock_post.reset_mock()
|
||||
|
||||
with override_settings(APPRISE_WEBHOOK_URL='http://$#@'):
|
||||
# Invalid hostname defined
|
||||
send_webhook({})
|
||||
assert mock_post.call_count == 0
|
||||
|
||||
@@ -93,7 +107,7 @@ class WebhookTests(SimpleTestCase):
|
||||
|
||||
with override_settings(
|
||||
APPRISE_WEBHOOK_URL='invalid://hostname'):
|
||||
# Invalid wbhook defined
|
||||
# Invalid webhook defined
|
||||
send_webhook({})
|
||||
assert mock_post.call_count == 0
|
||||
|
||||
|
Reference in New Issue
Block a user