Added healthcheck endpoint /status (#185)

This commit is contained in:
Chris Caron
2024-05-11 14:59:02 -04:00
committed by GitHub
parent 3a710fbbd1
commit 135dd4e98d
10 changed files with 435 additions and 14 deletions

View File

@@ -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