app-MAIL-temp/scripts/run-test.sh
2022-02-03 21:11:42 +00:00

12 lines
252 B
Bash

# Run tests
docker rm -f sl-test-db
docker run -d --name sl-test-db -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -e POSTGRES_DB=test -p 15432:5432 postgres:13
# the time the DB container starts
sleep 3
poetry run pytest
docker rm -f sl-test-db