Django 1.2.3 support

9 views
Skip to first unread message

Michela Ledwidge

unread,
Oct 13, 2010, 11:31:16 AM10/13/10
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)

jason pellerin

unread,
Oct 13, 2010, 11:46:27 AM10/13/10
to nose-...@googlegroups.com
To use django and nose together you need a plugin such as
http://github.com/jbalogh/django-nose -- nose otherwise doesn't know
how to set up the django test environment.

JP

> --
> You received this message because you are subscribed to the Google Groups "nose-users" group.
> To post to this group, send email to nose-...@googlegroups.com.
> To unsubscribe from this group, send email to nose-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nose-users?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages