Write simple test cases
We should implement the following tests:
DB
-
Check if all up and down migrations run without errors -
Do some form of integration testing of all reading and writing functions; a few interleave reading and writing functions should be enough
Validation
-
For each field type ( food_name
,comment
,price_per_packet
,...) do tests for each possible way of validation failure
Webpage
-
Check if all api calls succeed and insert the right values -
Check all pages and PDFs are generated without exceptions before and after modifying stuff