There should be check to verify the contents of the messList
Database.read_mess_list() expects a very specific format for the messList. In case someone accidentally loads the wrong csv file or if the messlist format is updated. The program should notify us.
How would you implement this?
Simply counting the number of rows or checking the titles are not enough. You need to verify that the contents of each column are what they claim to be, this might involve a little regex or something like that. If you really feel like you could update the read_mess_list() function to infer the contents of the columns automatically to protect it from a case where the columns are shuffled.
There should be check to verify the contents of the messList
Database.read_mess_list() expects a very specific format for the messList. In case someone accidentally loads the wrong csv file or if the messlist format is updated. The program should notify us.
How would you implement this?
Simply counting the number of rows or checking the titles are not enough. You need to verify that the contents of each column are what they claim to be, this might involve a little regex or something like that. If you really feel like you could update the read_mess_list() function to infer the contents of the columns automatically to protect it from a case where the columns are shuffled.