clearcode/pytest-dbfixtures — pull request #21 by spodym (2014-03-10 13:38:31+00:00)
Title: Postgresqlfixture

wait_for_postgres() is probably worst part of this pull but at least it blocks until postgresql is ready to handle queries from psycopg2.
Each test has its own psql instance in /tmp with port number appended to its name. Same for logfiles.