mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-28 19:23:43 +08:00
14 lines
300 B
Fish
14 lines
300 B
Fish
|
# time, cleanup pyc and running test, settings as first argument
|
||
|
# e.g. djtest settings_dev
|
||
|
function djtest
|
||
|
set VERBOSE --verbosity=1
|
||
|
find . -name "*.pyc" -delete
|
||
|
|
||
|
if set -q argv
|
||
|
time python manage.py test $VERBOSE --settings=$argv
|
||
|
else
|
||
|
time python manage.py test $VERBOSE
|
||
|
end
|
||
|
|
||
|
end
|