by simonw · 1y ago · 0 comments
for path in ("/", "/news/", "/about/"):
response = client.get(path)
assert response.status_code == 200
Run that on every commit and if you accidentally ship something that throws an exception on one of those pages you'll know about it instantly.