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')}
Beispiel #2
0
 def teardown_class(cls):
     reset_db()
Beispiel #3
0
 def setup_class(cls):
     reset_db()
Beispiel #4
0
 def setup(self):
     helpers.reset_db()
     ckan.lib.search.clear_all()
Beispiel #5
0
 def setup(self):
     reset_db()
 def setup_class(cls):
     super(TestPackageList, cls).setup_class()
     reset_db()
Beispiel #7
0
 def setup_class(cls):
     reset_db()
     harvest_model.setup()
Beispiel #8
0
 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()
Beispiel #13
0
 def setup(self):
     helpers.reset_db()
     harvest_model.setup()
Beispiel #14
0
 def teardown(self):
     h.reset_db()
     shutil.rmtree(self.temp_dir)
Beispiel #15
0
 def teardown_class(cls):
     helpers.reset_db()
 def teardown_class(cls):
     super(TestStructuredData, cls).teardown_class()
     helpers.reset_db()
Beispiel #17
0
 def setup(self):
     reset_db()
     harvest_model.setup()
 def setup(self):
     reset_db()
     if not tables_exist():
         create_tables()
Beispiel #19
0
 def teardown_class(cls):
     super(TestHarvestErrorMail, cls).teardown_class()
     reset_db()
Beispiel #20
0
 def teardown_class(cls):
     super(TestTranslations, cls).teardown_class()
     helpers.reset_db()
 def setup_class(cls):
     h.reset_db()
Beispiel #22
0
 def teardown(self):
     helpers.reset_db()
     ckan.lib.search.clear_all()
 def teardown_class(cls):
     helpers.reset_db()
Beispiel #24
0
 def setup_class(cls):
     reset_db()
     init_tables()