diff --git a/example2/polls/tests/__init__.py b/example2/polls/tests/__init__.py index b04a142..efb306e 100644 --- a/example2/polls/tests/__init__.py +++ b/example2/polls/tests/__init__.py @@ -1 +1,2 @@ from test_models import * +from test_views import * diff --git a/runtests.py b/runtests.py index 6e53d07..6e2cf3f 100755 --- a/runtests.py +++ b/runtests.py @@ -2,15 +2,15 @@ import os import sys -os.environ['DJANGO_SETTINGS_MODULE'] = 'example2.settings' -exampleproject_dir = os.path.join(os.path.dirname(__file__), 'example2') +os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings' +exampleproject_dir = os.path.join(os.path.dirname(__file__), 'example') sys.path.insert(0, exampleproject_dir) from django.test.utils import get_runner from django.conf import settings -def runtests(tests=('polls', 'djadmin2',)): +def runtests(tests=('blog', 'djadmin2',)): ''' Takes a list as first argument, enumerating the apps and specific testcases that should be executed. The syntax is the same as for what you would pass