RSS feed CDATA should contain difference output

This commit is contained in:
dgtlmoon
2022-03-30 10:51:10 +02:00
committed by GitHub
parent 082634f851
commit 8f40f19328
2 changed files with 23 additions and 5 deletions

View File

@@ -70,6 +70,11 @@ def test_check_basic_change_detection_functionality(client, live_server):
res = client.get(url_for("rss"))
expected_url = url_for('test_endpoint', _external=True)
assert b'<rss' in res.data
# re #16 should have the diff in here too
assert b'(into ) which has this one new line' in res.data
assert b'CDATA' in res.data
assert expected_url.encode('utf-8') in res.data
# Following the 'diff' link, it should no longer display as 'unviewed' even after we recheck it a few times