def setup_class(cls): feedmodel.setup() ckan.model.repo.rebuild_db() ckan.tests.CreateTestData.create() cls.user = model.User.by_name(u'testsysadmin') cls.extra_environ = {'Authorization':str(cls.user.apikey)}
def configure(self, config): """ Called upon CKAN setup, and creates (or checks) the appropriate database tables are created. """ feedmodel.setup() # If a default snippet is configured then we should use that # otherwise we will use a default. FeedContent.default_snippet = config.get('ckan.feeds.default.snippet', 'snippets/default.html') FeedContent.short_description_size = \ config.get('ckan.feeds.short_description.size', 200)