def setup(self):
     super(TestDimensionController, self).setup()
     load_fixture('cra')
     clean_and_reindex_solr()
     self.cra = Dataset.by_name('cra')
     for dimension in self.cra.dimensions:
         if isinstance(dimension, CompoundDimension) and \
                 dimension.name == 'cofog1':
             members = list(
                 dimension.members(dimension.alias.c.name == '3', limit=1))
             self.member = members.pop()
             break
 def setup(self):
     super(TestDimensionController, self).setup()
     load_fixture('cra')
     clean_and_reindex_solr()
     self.cra = Dataset.by_name('cra')
     for dimension in self.cra.dimensions:
         if isinstance(dimension, CompoundDimension) and \
                 dimension.name == 'cofog1':
             members = list(dimension.members(
                 dimension.alias.c.name == '3',
                 limit=1))
             self.member = members.pop()
             break
Beispiel #3
0
    def setup(self):

        super(TestDatasetController, self).setup()
        self.dataset = load_fixture('cra')
        self.user = make_account('test')
        clean_and_reindex_solr()
Beispiel #4
0
    def setup(self):

        super(TestApiSearch, self).setup()
        load_fixture('cra')
        clean_and_reindex_solr()
Beispiel #5
0
 def setup(self):
     super(TestApi2Controller, self).setup()
     load_fixture('cra')
     clean_and_reindex_solr()
    def setup(self):

        super(TestApiSearch, self).setup()
        load_fixture('cra')
        clean_and_reindex_solr()