Skip to content

Commit

Permalink
Drop Pg database before tests
Browse files Browse the repository at this point in the history
Our tests don't like to be run on a non-clean DB.
  • Loading branch information
phdru committed Aug 24, 2016
1 parent b542c83 commit ba66bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ commands = {[mysql]commands}
# PostgreSQL test environments
[postgresql]
commands =
psql -c 'drop database sqlobject_test;' -U postgres || true
psql -c 'create database sqlobject_test;' -U postgres
py.test --cov=sqlobject -D postgres://postgres:@localhost/sqlobject_test
psql -c 'drop database sqlobject_test;' -U postgres
Expand Down

0 comments on commit ba66bbe

Please sign in to comment.