Check that a notification URL is set when sending the test notification (#300)

This commit is contained in:
dgtlmoon
2021-12-08 12:23:48 +01:00
committed by GitHub
parent 489eedf34e
commit 7f8c0fb2fa
2 changed files with 25 additions and 19 deletions

View File

@@ -66,7 +66,7 @@ def test_check_notification(client, live_server):
follow_redirects=True
)
assert b"Updated watch." in res.data
assert b"Notifications queued" in res.data
assert b"Test notification queued" in res.data
# Hit the edit page, be sure that we saved it
res = client.get(
@@ -136,7 +136,7 @@ def test_check_notification(client, live_server):
)
assert b"Settings updated." in res.data
# Re #143 - should not see this if we didnt hit the test box
assert b"Notifications queued" not in res.data
assert b"Test notification queued" not in res.data
# Trigger a check
client.get(url_for("api_watch_checknow"), follow_redirects=True)