Michela Ledwidge
unread,Oct 13, 2010, 11:31:16 AM10/13/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nose-users
Hi
Any advice on this newbie problem. Using Django 1.2.3 and nose 0.11.4,
should I be able to simply run nosetests from the root of a django
project as per the nose Installation and quickstart documentation?
I've created tests subdirectory with a trivial test and can run
nosetests in that but in the root of the project I get the error bleow
- and not sure how to proceed.
Any advice?
Michela
======================================================================
ERROR: Tests that 1 + 1 always equals 2.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/michela/dev/lib/python2.7/site-packages/django/test/
testcases.py", line 256, in __call__
self._pre_setup()
File "/home/michela/dev/lib/python2.7/site-packages/django/test/
testcases.py", line 223, in _pre_setup
self._fixture_setup()
File "/home/michela/dev/lib/python2.7/site-packages/django/test/
testcases.py", line 489, in _fixture_setup
if not connections_support_transactions():
File "/home/michela/dev/lib/python2.7/site-packages/django/test/
testcases.py", line 478, in connections_support_transactions
for conn in connections.all())
File "/home/michela/dev/lib/python2.7/site-packages/django/test/
testcases.py", line 478, in <genexpr>
for conn in connections.all())
KeyError: 'SUPPORTS_TRANSACTIONS'
----------------------------------------------------------------------
Ran 1 test in 0.002s
FAILED (errors=1)