unwind/scripts/tests

15 lines
367 B
Bash
Executable file

#!/bin/sh -eu
cd "$RUN_DIR"
dbfile="${UNWIND_DATA:-./data}/tests.sqlite"
# Rollback in Databases is currently broken, so we have to rebuild the database
# each time; see https://github.com/encode/databases/issues/403
trap 'rm "$dbfile"' EXIT TERM INT QUIT
[ -z "${DEBUG:-}" ] || set -x
SQLALCHEMY_WARN_20=1 \
UNWIND_STORAGE="$dbfile" \
python -m pytest "$@"