Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (23 sloc) 0.585 kb
#!/bin/bash
PYTHONPATH=$PWD:$PWD/..${PYTHONPATH:+:$PYTHONPATH}
export PYTHONPATH
# complex
ALL="core basic alphanumeric slashless namespaced related validation gis"
if [ $# -eq 0 ]; then
TYPES=$ALL
elif [ $1 == '-h' ]; then
echo "Valid arguments are: $ALL"
else
TYPES=$@
fi
for type in $TYPES; do
echo "** $type **"
if [ $type == 'related' ]; then
django-admin.py test ${type}_resource --settings=settings_$type
continue
elif [ $type == 'gis' ]; then
createdb -T template_postgis tastypie.db
fi
django-admin.py test $type --settings=settings_$type
echo; echo
done
Jump to Line
Something went wrong with that request. Please try again.