python tests.py
successfully in the app directory or in /app/tests subdirectory where it
says (no setup or teardown required yet)
.........................
----------------------------------------------------------------------
Ran 25 tests in 0.141s
OK
but in the project directory can someone tell me why this runs zero tests?
python manage.py test app
says
Creating test database for alias 'default'...
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Destroying test database for alias 'default'...
Maybe there are no database related tests just yet????
On the other hand broadening the scope seems to run a whole mess of
contrib app tests.
python manage.py test
says
Creating test database for alias 'default'...
.............................................................................s............
..........................................................................................
..........................................................................................
........................................................
----------------------------------------------------------------------
Ran 326 tests in 33.157s
OK (skipped=1)
Destroying test database for alias 'default'...
My settings.py says in part ...
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes', # keeps track of labels and tables
'django.contrib.sessions', # keys, values, expiry
'django.contrib.sites', # for connecting content to 'a' site
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.staticfiles',
'django.contrib.comments',
'commoninfo',
'ldap_groups', # Novell login for auth
'app',
)
Thanks for any hints
Mike
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment