Add 'diff_patch' notification body token - This will allow the diff to be generated in the "unified patch format." (#1765)
This commit is contained in:
@@ -15,7 +15,7 @@ def set_original_response():
|
||||
Some initial text<br>
|
||||
<p id="only-this">Should be only this</p>
|
||||
<br>
|
||||
<p id="not-this">And never this</p>
|
||||
<p id="not-this">And never this</p>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
@@ -30,7 +30,7 @@ def set_modified_response():
|
||||
Some initial text<br>
|
||||
<p id="only-this">Should be REALLY only this</p>
|
||||
<br>
|
||||
<p id="not-this">And never this</p>
|
||||
<p id="not-this">And never this</p>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
@@ -189,6 +189,7 @@ def test_group_tag_notification(client, live_server):
|
||||
"Diff Added: {{diff_added}}\n"
|
||||
"Diff Removed: {{diff_removed}}\n"
|
||||
"Diff Full: {{diff_full}}\n"
|
||||
"Diff as Patch: {{diff_patch}}\n"
|
||||
":-)",
|
||||
"notification_screenshot": True,
|
||||
"notification_format": "Text",
|
||||
@@ -319,4 +320,4 @@ def test_clone_tag_on_quickwatchform_add(client, live_server):
|
||||
assert b'Deleted' in res.data
|
||||
|
||||
res = client.get(url_for("tags.delete_all"), follow_redirects=True)
|
||||
assert b'All tags deleted' in res.data
|
||||
assert b'All tags deleted' in res.data
|
||||
|
||||
Reference in New Issue
Block a user