Today, I was working on a simple Django app. I was cranking away on something, then went to the admin panel and… something wasn’t working. I had made a typo and written foriegn rather than foreign in formfield_for_foreignkey.
And I hadn’t noticed. Computers are supposed to notice these things. Test suites and CI servers are supposed to catch my errors.
I realised then that having something that just checks to make sure that the admin panel is working is useful.
Something like this.
You could automate this some more: have it so it probes through your admin panel and clicks links for you. This will do for now though.
One could also go further and have the tests put data in the forms and so on. But this is good enough. It’s likely to blow up if you’ve made a mistake when you are writing the Python code that defines the admin panels.