def setUp(self): super(TestTags, self).setUp() self.accessor.connect() self.tagdb = bg_tags.BigGraphiteTagDB( accessor=self.accessor, metadata_cache=self.metadata_cache, )
def setUp(self): super(TestTags, self).setUp() self.accessor.connect() from django.conf import settings as django_settings self.tagdb = bg_tags.BigGraphiteTagDB( settings=django_settings, accessor=self.accessor, metadata_cache=self.metadata_cache, )
def tagdb(self): if not HAVE_TAGS: return None if not self._tagdb: accessor = self.accessor cache = self.cache if accessor and cache: self._tagdb = tags.BigGraphiteTagDB(accessor=accessor, metadata_cache=cache) return self._tagdb