mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-26 18:31:07 +08:00
14 lines
336 B
Fish
14 lines
336 B
Fish
# time, cleanup pyc and running test, settings as first argument
|
|
# e.g. djtest settings_dev
|
|
function djtest
|
|
if test -n $argv
|
|
set SETTINGS = $argv[0]
|
|
else
|
|
set SETTINGS = false
|
|
end
|
|
|
|
set VERBOSE --verbosity=1
|
|
find . -name "*.pyc" -delete
|
|
time python manage.py test $VERBOSE --settings=$SETTINGS
|
|
end
|