Unit testing Python + MySQLdb warnings
There seems to be several methods out there, based on elevating warnings to
errors using
warnings.simplefilter
(Update: sorry, the link is dead).
Here's another method, based on recording warnings in a variable (Update: sorry, the link is dead), and checking that the last one is a MySQLdb.Warning
.
Hopefully to be integrated in INSPIRE.
No webmentions were found.