2021-06-21 18:54:03 +02:00
|
|
|
#!/bin/sh -eu
|
|
|
|
|
|
|
|
|
|
cd "$RUN_DIR"
|
|
|
|
|
|
2021-12-19 19:30:08 +01:00
|
|
|
dbfile="${UNWIND_DATA:-./data}/tests.sqlite"
|
2021-12-07 23:54:06 +01:00
|
|
|
|
2021-12-19 19:30:08 +01:00
|
|
|
# Rollback in Databases is currently broken, so we have to rebuild the database
|
|
|
|
|
# each time; see https://github.com/encode/databases/issues/403
|
2021-12-07 23:54:06 +01:00
|
|
|
trap 'rm "$dbfile"' EXIT TERM INT QUIT
|
|
|
|
|
|
2021-06-21 18:54:03 +02:00
|
|
|
[ -z "${DEBUG:-}" ] || set -x
|
|
|
|
|
|
2023-03-18 22:11:51 +01:00
|
|
|
export SQLALCHEMY_WARN_20=1 # XXX remove when we switched to SQLAlchemy 2.0
|
2021-12-07 23:54:06 +01:00
|
|
|
UNWIND_STORAGE="$dbfile" \
|
|
|
|
|
python -m pytest "$@"
|