Ticket #1230 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Make sure plugins tables work in tests.

Reported by: kindly Owned by:
Priority: awaiting triage Milestone: ckan-sprint-2011-10-28
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none


Dgu tests failed as harvesting table are not created at the correct point.

Change History

comment:1 Changed 3 years ago by kindly

  • Status changed from new to closed
  • Resolution set to fixed

The standard way to add tables in a plugin has converged upon putting the tables in the iconfigurable plugin.

This runs at the correct point for when the application runs normally. For testing however there are issues due to the tables potentially being dropped, especially for the sqlite case. The fix is to make sure the iconfigurables are run at the start of each set of tests, hence adding it to the ckan_nose_plugin. This is not pretty, but good enough.


Note: See TracTickets for help on using tickets.