def setup_class(cls): import ckanext.hdx_users.model as umodel import ckanext.hdx_user_extra.model as ue_model import ckanext.hdx_pages.model as p_model super(TestPageLoad, cls).setup_class() umodel.setup() ue_model.create_table() p_model.create_table()
def setup_class(cls): smtp_server = config.get('smtp.test_server') if smtp_server: host, port = smtp_server.split(':') port = int(port) + int(str(hashlib.md5(cls.__name__).hexdigest())[0], 16) config['smtp.test_server'] = '%s:%s' % (host, port) SmtpServerHarness.setup_class() PylonsTestCase.setup_class() umodel.setup() ue_model.create_table() cls._load_plugins() cls.app = hdx_test_base._get_test_app()
def setup_class(cls): super(TestDatasetOutput, cls).setup_class() umodel.setup() ue_model.create_table()
def setup_class(cls): super(TestHDXPackageUpdate, cls).setup_class() umodel.setup() ue_model.create_table()
def initdb(self): ''' Create the table defined by model ''' user_model.create_table()
def setup_class(cls): super(TestAboutPageController, cls).setup_class() umodel.setup() ue_model.create_table()