diff --git a/django/django.load b/django/django.load deleted file mode 100644 index d131954..0000000 --- a/django/django.load +++ /dev/null @@ -1,13 +0,0 @@ -# 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 diff --git a/plugins/django/django.load b/plugins/django/django.load new file mode 100644 index 0000000..e69de29 diff --git a/plugins/django/djtest.fish b/plugins/django/djtest.fish new file mode 100644 index 0000000..9726130 --- /dev/null +++ b/plugins/django/djtest.fish @@ -0,0 +1,13 @@ +# 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