[ckan-changes] [okfn/ckan] 3b7ff6: Fix a test that was broken with sqlite

GitHub noreply at github.com
Fri Jun 22 15:13:57 UTC 2012

  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: 3b7ff6c2e9eaa2bb21567525fd9df0fcde330816
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-06-22 (Fri, 22 Jun 2012)

  Changed paths:
    M ckan/tests/functional/test_group.py

  Log Message:
  Fix a test that was broken with sqlite

If you do CreateTestData.create() and then do setup_test_search_index()
in a setup_class() method then setup_test_search_index() causes the
entire test class to be skipped when tests are run with sqlite, and the
teardown_class() method is not run, so you have created test data but
not deleted it, and the next test classes will crash when they try to
create the test data. Instead call setup_test_search_index() before you
create test data.

More information about the ckan-changes mailing list