RSS allow access via token (#310)

Allow access via a token
* New RSS URL
* Redirect the old RSS feed URL
* fix tests
This commit is contained in:
dgtlmoon
2021-12-16 00:05:01 +01:00
committed by GitHub
parent e71dbbe771
commit 9815fc2526
4 changed files with 78 additions and 38 deletions

View File

@@ -59,7 +59,7 @@ def test_check_basic_change_detection_functionality(client, live_server):
assert b'unviewed' in res.data
# #75, and it should be in the RSS feed
res = client.get(url_for("index", rss="true"))
res = client.get(url_for("rss"))
expected_url = url_for('test_endpoint', _external=True)
assert b'<rss' in res.data
assert expected_url.encode('utf-8') in res.data