2026-10-05 09:41:22 +02:00
|
|
|
# retoor <retoor@molodetz.nl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_post_page(anon):
|
2026-10-05 11:25:41 +02:00
|
|
|
posts = anon.get("/roll", headers={"Accept": "application/json"}).json()["posts"]
|
|
|
|
|
post = next(post for post in posts if post["title"] == "No course.")
|
2026-10-05 09:41:22 +02:00
|
|
|
response = anon.get(f"/posts/{post['slug']}")
|
|
|
|
|
assert response.status_code == 200
|
|
|
|
|
assert "Placeholder" in response.text
|