2018-05-09 07:36:21 -04:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.django_db
|
|
|
|
def test_atom(client):
|
2023-08-10 02:52:37 -04:00
|
|
|
res = client.get("/atom")
|
2018-05-09 07:36:21 -04:00
|
|
|
assert res.status_code == 200
|
2023-08-10 02:52:37 -04:00
|
|
|
assert res["Content-Type"] == "application/atom+xml; charset=utf-8"
|
2018-05-09 07:36:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.django_db
|
|
|
|
def test_rss(client):
|
2023-08-10 02:52:37 -04:00
|
|
|
res = client.get("/rss")
|
2018-05-09 07:36:21 -04:00
|
|
|
assert res.status_code == 200
|
2023-08-10 02:52:37 -04:00
|
|
|
assert res["Content-Type"] == "application/rss+xml; charset=utf-8"
|
2018-05-09 07:36:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.django_db
|
|
|
|
def test_atom_by_kind(client):
|
2023-08-10 02:52:37 -04:00
|
|
|
res = client.get("/notes/atom")
|
2018-05-09 07:36:21 -04:00
|
|
|
assert res.status_code == 200
|
2023-08-10 02:52:37 -04:00
|
|
|
assert res["Content-Type"] == "application/atom+xml; charset=utf-8"
|
2018-05-09 07:36:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.django_db
|
|
|
|
def test_rss_by_kind(client):
|
2023-08-10 02:52:37 -04:00
|
|
|
res = client.get("/notes/rss")
|
2018-05-09 07:36:21 -04:00
|
|
|
assert res.status_code == 200
|
2023-08-10 02:52:37 -04:00
|
|
|
assert res["Content-Type"] == "application/rss+xml; charset=utf-8"
|