Skip to content

Instantly share code, notes, and snippets.

@fernandojunior
Last active June 3, 2016 23:02
Show Gist options
  • Save fernandojunior/9930d657bdcdff140d3dc109af3a291c to your computer and use it in GitHub Desktop.
Save fernandojunior/9930d657bdcdff140d3dc109af3a291c to your computer and use it in GitHub Desktop.
ckan nosetestes failures
$ nosetests --ckan --reset-db --with-pylons=test-core.ini ckan
.........................../usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py:79: SAWarning: Usage of the 'related attribute set' operation is not currently supported within the execution stage of the flush process. Results may not be consistent. Consider using alternative event listeners or connection-level operations instead.
sess._flush_warning("related attribute set")
........................................FF................................................................................................................................................./usr/lib/ckan/default/src/ckan/ckan/tests/controllers/test_user.py:156: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
assert_true('/my/prefix/user/logout' in e.message)
.................................................................................................................................................S.S.S.S...........................................................................................................................................................................................................................................................................SS.........S.................................S................................................................................................................................................................................................................................................................................S...........S..................................................S..............S..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: ckan.tests.controllers.test_group.TestGroupController.test_page_thru_list_of_groups_preserves_sort_order
----------------------------------------------------------------------
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 "/usr/lib/ckan/default/src/ckan/ckan/tests/controllers/test_group.py", line 49, in test_page_thru_list_of_groups_preserves_sort_order
assert groups[0]['title'] not in response
AssertionError:
-------------------- >> begin captured logging << --------------------
ckan.model: INFO: Database table data deleted
ckan.model: INFO: Database initialised
ckan.model: INFO: Database rebuilt
ckan.lib.base: INFO: /group render time 0.367 seconds
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: ckan.tests.controllers.test_group.TestGroupController.test_page_thru_list_of_orgs_preserves_sort_order
----------------------------------------------------------------------
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 "/usr/lib/ckan/default/src/ckan/ckan/tests/controllers/test_group.py", line 34, in test_page_thru_list_of_orgs_preserves_sort_order
assert orgs[0]['name'] not in response
AssertionError:
-------------------- >> begin captured logging << --------------------
ckan.model: INFO: Database table data deleted
ckan.model: INFO: Database initialised
ckan.model: INFO: Database rebuilt
ckan.lib.base: INFO: /organization render time 0.245 seconds
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 1976 tests in 1346.316s
FAILED (SKIP=12, failures=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment