Notification - Support for standard API calls post:// posts:// get:// gets:// delete:// deletes:// put:// puts:// (#1194)

This commit is contained in:
dgtlmoon
2022-12-05 20:49:08 +01:00
committed by GitHub
parent c12db2b725
commit 265f622e75
4 changed files with 11 additions and 40 deletions

View File

@@ -77,7 +77,8 @@ def test_DNS_errors(client, live_server):
time.sleep(3)
res = client.get(url_for("index"))
assert b'Name or service not known' in res.data
found_name_resolution_error = b"Temporary failure in name resolution" in res.data or b"Name or service not known" in res.data
assert found_name_resolution_error
# Should always record that we tried
assert bytes("just now".encode('utf-8')) in res.data