When running Pootle tests you can see a count of the database calls that were made for each test, and some overall test metrics. py.test -vv --debug-tests mytest.log This can be used with the -k flag ...