app/scripts/run-test.sh

7 lines
182 B
Bash
Raw Normal View History

2021-08-20 18:00:45 +08:00
# Run tests
docker run -d --name sl-test-db -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -e POSTGRES_DB=test -p 15432:5432 postgres:13
poetry run pytest
docker rm -f sl-test-db