コード例 #1
0
ファイル: test.py プロジェクト: AAEMCJALBERT/ckan
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     p.unload('datastore')
     p.unload('datapusher')
     # Reenable Solr indexing
     if (sys.version_info[0] == 2 and sys.version_info[1] == 6
             and not p.plugin_loaded('synchronous_search')):
         p.load('synchronous_search')
コード例 #2
0
 def teardown_class(cls):
     '''Nose runs this method once after all the test methods in our class
     have been run.
     '''
     rebuild_all_dbs(cls.Session)
     
     # unload plugins
     p.unload('datastore')
     p.unload('realtime')
コード例 #3
0
    def setup_class(cls):
        '''Nose runs this method once to setup our test class.'''        
        # Make the Paste TestApp that we'll use to simulate HTTP requests to
        # CKAN.
        cls.app = paste.fixture.TestApp(pylons.test.pylonsapp)

        
        engine = sqlalchemy.create_engine(config['ckan.datastore.write_url'])
        cls.Session = orm.scoped_session(orm.sessionmaker(bind=engine))
        
        rebuild_all_dbs(cls.Session)
        p.load('datastore')
        p.load('realtime')
        
        ctd.CreateTestData.create()
        
        cls.sysadmin_user = model.User.get('testsysadmin')
        cls.normal_user = model.User.get('annafan')
        
        # make test resource writable through action api
        set_url_type(
            model.Package.get('annakarenina').resources, cls.sysadmin_user)
        
        cls._create_test_datastore()
コード例 #4
0
ファイル: test_search.py プロジェクト: harishpillay/ckan
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     p.unload("datastore")
コード例 #5
0
ファイル: test.py プロジェクト: Hoedic/ckan
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     p.unload('datastore')
     p.unload('datapusher')
コード例 #6
0
ファイル: test_search.py プロジェクト: Big-Data/ckan
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
コード例 #7
0
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     plugins.unload('datastore')
     plugins.unload('datastorecsw')
コード例 #8
0
ファイル: test_dump.py プロジェクト: Hosting-Scripts/ckan
 def teardown_class(cls):
     helpers.rebuild_all_dbs(cls.Session)
     p.unload('datastore')
     config.clear()
     config.update(cls._original_config)
コード例 #9
0
ファイル: test_dump.py プロジェクト: CodeandoMexico/ckan
 def teardown_class(cls):
     helpers.rebuild_all_dbs(cls.Session)
     p.unload('datastore')
コード例 #10
0
ファイル: test_upsert.py プロジェクト: 1sha1/ckan
 def teardown_class(cls):
     p.unload('datastore')
     rebuild_all_dbs(cls.Session)
コード例 #11
0
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     p.unload('timeseries')
コード例 #12
0
 def teardown_class(cls):
     p.unload('datastore')
     rebuild_all_dbs(cls.Session)
コード例 #13
0
 def teardown_class(cls):
     helpers.rebuild_all_dbs(cls.Session)
     p.unload('datastore')
コード例 #14
0
ファイル: test_delete.py プロジェクト: usuariobkp/ckan
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
コード例 #15
0
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     p.unload('datastore')
     p.unload('datapusher')
コード例 #16
0
ファイル: test.py プロジェクト: ngds/ckanext-datastorecsw
 def teardown_class(cls):
     rebuild_all_dbs(cls.Session)
     plugins.unload('datastore')
     plugins.unload('datastorecsw')