def initial_data(self, clean_db, with_request_context): self.p = plugin.TextView() create_test_data.CreateTestData.create() self.resource_view, self.package, self.resource_id = \ _create_test_view(self.view_type)
def setup_class(cls): cls.config_templates = config['ckan.legacy_templates'] config['ckan.legacy_templates'] = 'false' wsgiapp = middleware.make_app(config['global_conf'], **config) plugins.load('text_view') cls.app = paste.fixture.TestApp(wsgiapp) cls.p = plugin.TextView() create_test_data.CreateTestData.create() cls.resource_view, cls.package, cls.resource_id = \ _create_test_view(cls.view_type)
def setup_class(cls): if not plugins.plugin_loaded('text_view'): plugins.load('text_view') if plugins.plugin_loaded('resource_proxy'): plugins.unload('resource_proxy') cls.p = plugin.TextView() create_test_data.CreateTestData.create() cls.resource_view, cls.package, cls.resource_id = \ _create_test_view(cls.view_type)