I have python-django installed (on maverick):
$ dpkg -l|grep django
ii python-django 1.2.1-1 High-level Python web development framework
I get the following errors when I run the tests:
===============================================================================
[ERROR]: tests.django.backend.PostgresDjangoBackendTests.test_commit
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/home/jkakar/src/canonical/storm/trunk/tests/mocker.py", line 102, in test_method_wrapper
result = test_method()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 122, in test_commit
wrapper = self.make_wrapper()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 89, in make_wrapper
'TIME_ZONE': settings.TIME_ZONE,
File "/home/jkakar/src/canonical/storm/trunk/storm/django/backend/base.py", line 81, in DatabaseWrapper
return DatabaseWrapper(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/backends/postgresql_psycopg2/base.py", line 103, in __init__
autocommit = self.settings_dict["OPTIONS"].get('autocommit', False)
exceptions.KeyError: 'OPTIONS'
===============================================================================
[ERROR]: tests.django.backend.PostgresDjangoBackendTests.test_create_wrapper
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/home/jkakar/src/canonical/storm/trunk/tests/mocker.py", line 102, in test_method_wrapper
result = test_method()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 96, in test_create_wrapper
wrapper = self.make_wrapper()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 89, in make_wrapper
'TIME_ZONE': settings.TIME_ZONE,
File "/home/jkakar/src/canonical/storm/trunk/storm/django/backend/base.py", line 81, in DatabaseWrapper
return DatabaseWrapper(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/backends/postgresql_psycopg2/base.py", line 103, in __init__
autocommit = self.settings_dict["OPTIONS"].get('autocommit', False)
exceptions.KeyError: 'OPTIONS'
===============================================================================
[ERROR]: tests.django.backend.PostgresDjangoBackendTests.test_rollback
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/home/jkakar/src/canonical/storm/trunk/tests/mocker.py", line 102, in test_method_wrapper
result = test_method()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 134, in test_rollback
wrapper = self.make_wrapper()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 89, in make_wrapper
'TIME_ZONE': settings.TIME_ZONE,
File "/home/jkakar/src/canonical/storm/trunk/storm/django/backend/base.py", line 81, in DatabaseWrapper
return DatabaseWrapper(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/backends/postgresql_psycopg2/base.py", line 103, in __init__
autocommit = self.settings_dict["OPTIONS"].get('autocommit', False)
exceptions.KeyError: 'OPTIONS'
===============================================================================
[ERROR]: tests.django.backend.PostgresDjangoBackendTests.test_using_wrapper_joins_transaction
Traceback (most recent call last):
File "/usr/lib/python2.6/unittest.py", line 279, in run
testMethod()
File "/home/jkakar/src/canonical/storm/trunk/tests/mocker.py", line 102, in test_method_wrapper
result = test_method()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 116, in test_using_wrapper_joins_transaction
wrapper = self.make_wrapper()
File "/home/jkakar/src/canonical/storm/trunk/tests/django/backend.py", line 89, in make_wrapper
'TIME_ZONE': settings.TIME_ZONE,
File "/home/jkakar/src/canonical/storm/trunk/storm/django/backend/base.py", line 81, in DatabaseWrapper
return DatabaseWrapper(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/db/backends/postgresql_psycopg2/base.py", line 103, in __init__
autocommit = self.settings_dict["OPTIONS"].get('autocommit', False)
exceptions.KeyError: 'OPTIONS'
-------------------------------------------------------------------------------