app-MAIL-temp/scripts/run-test.sh

13 lines
252 B
Bash
Raw Normal View History

2021-08-20 12:00:45 +02:00
# Run tests
docker rm -f sl-test-db
2021-08-20 12:00:45 +02:00
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
2022-02-03 22:11:42 +01:00
sleep 3
2021-08-20 12:00:45 +02:00
poetry run pytest
2022-02-03 22:08:38 +01:00
docker rm -f sl-test-db