Make api docker image able to run tests

This commit is contained in:
Eliot Berriot 2018-03-12 23:07:08 +01:00
parent 046648ce6c
commit 99f33dd392
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 9 additions and 22 deletions

View file

@ -0,0 +1,7 @@
#!/bin/bash
set -e
if [ $1 = "pytest" ]; then
# let pytest.ini handle it
unset DJANGO_SETTINGS_MODULE
fi
exec "$@"