def setup_class(cls):
        harvest_model.setup()
        tests.CreateTestData.create()

        sysadmin_user = ckan.model.User.get('testsysadmin')
        cls.sysadmin = {
            'id': sysadmin_user.id,
            'apikey': sysadmin_user.apikey,
            'name': sysadmin_user.name,
        }

        cls.app = paste.fixture.TestApp(pylons.test.pylonsapp)

        cls.default_source_dict = {
            "url": "http://test.action.com",
            "name": "test-source-action",
            "title": "Test source action",
            "notes": "Test source action desc",
            "source_type": "test-for-action",
            "frequency": "MANUAL",
            "config": json.dumps({"custom_option": ["a", "b"]})
        }
 def setup_class(cls):
     harvest_model.setup()