Skip to content

Commit

Permalink
The start of some testing infrastructure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsocol committed Mar 24, 2013
1 parent 11ed970 commit 1abd903
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
20 changes: 20 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

export PYTHONPATH=".:$PYTHONPATH"
export DJANGO_SETTINGS_MODULE="test_settings"

usage() {
echo "USAGE: $0 [command]"
echo " test - run the adminplus tests"
echo " shell - open the Django shell"
exit 1
}

case "$1" in
"test" )
django-admin.py test adminplus ;;
"shell" )
django-admin.py shell ;;
* )
usage ;;
esac
9 changes: 9 additions & 0 deletions test_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.auth',
'django.contrib.admin',
'adminplus',
)
SECRET_KEY = 'adminplus'

0 comments on commit 1abd903

Please sign in to comment.