Skip to content

Instantly share code, notes, and snippets.

@davidread
Created January 25, 2019 20:29
Show Gist options
  • Save davidread/518650c795244b411e1fc817cc3c89aa to your computer and use it in GitHub Desktop.
Save davidread/518650c795244b411e1fc817cc3c89aa to your computer and use it in GitHub Desktop.
context error
$ nosetests --ckan --with-pylons=test-core.ini ckan/tests/lib/test_helpers.py:TestBuildNavMain -x
No handlers could be found for logger "ckan.lib.uploader"
E
======================================================================
ERROR: ckan.tests.lib.test_helpers.TestBuildNavMain.test_dataset_navigation_legacy_routes
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/vagrant/src/ckan/ckan/tests/lib/test_helpers.py", line 606, in test_dataset_navigation_legacy_routes
h.build_nav_icon('dataset_read', 'Datasets', id=dataset_name),
File "/vagrant/src/ckan/ckan/lib/helpers.py", line 885, in build_nav_icon
return _make_menu_item(menu_item, title, **kw)
File "/vagrant/src/ckan/ckan/lib/helpers.py", line 963, in _make_menu_item
active = _link_active(item)
File "/vagrant/src/ckan/ckan/lib/helpers.py", line 723, in _link_active
return _link_active_pylons(kwargs)
File "/vagrant/src/ckan/ckan/lib/helpers.py", line 729, in _link_active_pylons
return (c.controller == kwargs.get('controller')
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
return getattr(self._get_current_object(), name)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/registry.py", line 137, in __getattr__
return getattr(self._current_obj(), attr)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/registry.py", line 197, in _current_obj
'thread' % self.____name__)
TypeError: No object (name: tmpl_context or C) has been registered for this thread
----------------------------------------------------------------------
Ran 1 test in 0.013s
FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment