3 ms·
Totally agree. One of my favourite style of tests is this: for path in ("/", "/news/", "/about/"): response = client.get(path) assert response.st
by simonw 2y ago
Totally agree. One of my favourite style of tests is this:
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.
- 3eb7988a1663 2y agoI have spotty test coverage, but always configure a high level smoke test on every end point. Prevents silly mistakes that might otherwise slip through and trivial to implement. Can supplement for the more complex interactions, but gives a big safety blanket that there has not been a regression which breaks everything.