Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tests using django-webtest pass on Django 1.3, Django 1.4, and Django 1.5 but fail on Django trunk.
$ python setup.py test
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mantainer'
warnings.warn(msg)
running test
running egg_info
writing django_simple_history.egg-info/PKG-INFO
writing top-level names to django_simple_history.egg-info/top_level.txt
writing dependency_links to django_simple_history.egg-info/dependency_links.txt
reading manifest file 'django_simple_history.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
warning: no files found matching 'AUTHORS'
writing manifest file 'django_simple_history.egg-info/SOURCES.txt'
running build_ext
Creating test database for alias 'default'...
EE................
======================================================================
ERROR: test_history_form (simple_history.tests.tests.AdminSiteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 260, in test_history_form
self.login(username='u', password='pass')
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 246, in login
form = self.app.get(reverse('admin:index')).form
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 97, in get
url, params, headers, extra_environ, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 64, in do_request
response = super(DjangoTestApp, self).do_request(req, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 467, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1292, in send
application, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/lint.py", line 194, in lint_app
iterator = application(environ, start_response_wrapper)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
return self.application(environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 240, in __call__
signals.request_started.send(sender=self.__class__)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 182, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/__init__.py", line 75, in close_old_connections
conn.abort()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 347, in abort
self.rollback()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 176, in rollback
self.validate_no_atomic_block()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 339, in validate_no_atomic_block
"This is forbidden when an 'atomic' block is active.")
TransactionManagementError: This is forbidden when an 'atomic' block is active.
======================================================================
ERROR: test_history_list (simple_history.tests.tests.AdminSiteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 252, in test_history_list
self.login(username='u', password='pass')
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 246, in login
form = self.app.get(reverse('admin:index')).form
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 97, in get
url, params, headers, extra_environ, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 64, in do_request
response = super(DjangoTestApp, self).do_request(req, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 467, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1292, in send
application, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/lint.py", line 194, in lint_app
iterator = application(environ, start_response_wrapper)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
return self.application(environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 240, in __call__
signals.request_started.send(sender=self.__class__)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 182, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/__init__.py", line 75, in close_old_connections
conn.abort()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 347, in abort
self.rollback()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 176, in rollback
self.validate_no_atomic_block()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 339, in validate_no_atomic_block
"This is forbidden when an 'atomic' block is active.")
TransactionManagementError: This is forbidden when an 'atomic' block is active.
----------------------------------------------------------------------
Ran 18 tests in 0.261s
FAILED (errors=2)
Destroying test database for alias 'default'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.