mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Add atom/rss news feed
This commit is contained in:
@ -319,3 +319,11 @@ class TestNewsCreation(TestCase):
|
||||
self.valid_payload,
|
||||
)
|
||||
mocked.assert_called()
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_feed(client):
|
||||
"""Smoke test that checks that the atom feed is working"""
|
||||
resp = client.get(reverse("com:news_feed"))
|
||||
assert resp.status_code == 200
|
||||
assert resp.headers["Content-Type"] == "application/rss+xml; charset=utf-8"
|
||||
|
Reference in New Issue
Block a user