I would like to use a unit test tool in python to do test on database content. My problem is on the assert part of the test.
I would like to write something like assertEquals(tableA,expectedResults.XML), tableA being a table in the database after the execution of a batch (before that I set up the database content correctly) and expectedResults.XML is a file containing the expected results (hand made file).
And the result of the assertEquals(tableA,expectedResults.XML) execution would be : one ligne with global statut of test OK/KO and one ligne per assert (there would be one assert for each couple (row, column)
Do that kind of testing library exists?
Yours sincerely Loïc Midy
Aucun commentaire:
Enregistrer un commentaire