add some tests for db.find_ratings

This commit is contained in:
ducklet 2021-12-19 19:30:08 +01:00
parent a17b49bc0b
commit e1f35143df
4 changed files with 195 additions and 8 deletions

View file

@ -2,8 +2,10 @@
cd "$RUN_DIR"
dbfile="$RUN_DIR/tests.sqlite.local"
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