def setup_class(cls): helpers.reset_db() super(TestController, cls).setup_class() harvest_model.setup() sysadmin = factories.Sysadmin() cls.extra_environ = {'REMOTE_USER': sysadmin['name'].encode('ascii')}
def teardown_class(cls): reset_db()
def setup_class(cls): reset_db()
def setup(self): helpers.reset_db() ckan.lib.search.clear_all()
def setup(self): reset_db()
def setup_class(cls): super(TestPackageList, cls).setup_class() reset_db()
def setup_class(cls): reset_db() harvest_model.setup()
def setup_class(cls): super(TestHarvestErrorMail, cls).setup_class() reset_db() harvest_model.setup()
def teardown_class(cls): super(TestAcceptHeader, cls).teardown_class() helpers.reset_db()
def teardown_class(cls): super(TestController, cls).teardown_class() helpers.reset_db()
def teardown(self): h.reset_db() queue.purge_queues() requests.get(clear_solr_url)
def setup_class(cls): h.reset_db() cls.gather_consumer = queue.get_gather_consumer() cls.fetch_consumer = queue.get_fetch_consumer()
def setup(self): helpers.reset_db() harvest_model.setup()
def teardown(self): h.reset_db() shutil.rmtree(self.temp_dir)
def teardown_class(cls): helpers.reset_db()
def teardown_class(cls): super(TestStructuredData, cls).teardown_class() helpers.reset_db()
def setup(self): reset_db() harvest_model.setup()
def setup(self): reset_db() if not tables_exist(): create_tables()
def teardown_class(cls): super(TestHarvestErrorMail, cls).teardown_class() reset_db()
def teardown_class(cls): super(TestTranslations, cls).teardown_class() helpers.reset_db()
def setup_class(cls): h.reset_db()
def teardown(self): helpers.reset_db() ckan.lib.search.clear_all()
def setup_class(cls): reset_db() init_tables()