Skip to content

Commit

Permalink
script/pytest.sh - a little test automation
Browse files Browse the repository at this point in the history
  • Loading branch information
seanharrison committed Feb 13, 2024
1 parent 1688add commit 254f68e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script/pytest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -eu

psql $POSTGRESQL_URL -c "drop database testapp" || true
psql $POSTGRESQL_URL -c "create database testapp" || true

pytest $@ || true

rm -f $(dirname $(dirname $0))/testapp/migrations/*

0 comments on commit 254f68e

Please sign in to comment.