Send diff in notifications (#296)

This commit is contained in:
dgtlmoon
2021-12-10 12:08:51 +01:00
committed by GitHub
parent a7c09c8990
commit 5a10acfd09
16 changed files with 185 additions and 56 deletions

View File

@@ -55,6 +55,8 @@ def test_check_notification(client, live_server):
"Preview: {preview_url}\n"
"Diff URL: {diff_url}\n"
"Snapshot: {current_snapshot}\n"
"Diff: {diff}\n"
"Diff Full: {diff_full}\n"
":-)",
"notification_format": "Text",
"url": test_url,
@@ -114,6 +116,11 @@ def test_check_notification(client, live_server):
assert test_url in notification_submission
# Diff was correctly executed
assert "Diff Full: (changed) Which is across multiple lines" in notification_submission
assert "(-> into) which has this one new line" in notification_submission
if env_base_url:
# Re #65 - did we see our BASE_URl ?
logging.debug (">>> BASE_URL checking in notification: %s", env_base_url)