diff --git a/changedetectionio/tests/test_notification.py b/changedetectionio/tests/test_notification.py index 9e9c1c6fb..760c660e0 100644 --- a/changedetectionio/tests/test_notification.py +++ b/changedetectionio/tests/test_notification.py @@ -429,3 +429,24 @@ def test_global_send_test_notification(client, live_server, measure_memory_usage follow_redirects=True ) + #2727 - be sure a test notification when there are zero watches works ( should all be deleted now) + + os.unlink("test-datastore/notification.txt") + + + ######### Test global/system settings + res = client.post( + url_for("ajax_callback_send_notification_test")+"?mode=global-settings", + data={"notification_urls": test_notification_url}, + follow_redirects=True + ) + + assert res.status_code != 400 + assert res.status_code != 500 + + # Give apprise time to fire + time.sleep(4) + + with open("test-datastore/notification.txt", 'r') as f: + x = f.read() + assert 'change detection is cool 网站监测 内容更新了' in x