예제 #1
0
 def setUp(self):
     super(TestTags, self).setUp()
     self.accessor.connect()
     self.tagdb = bg_tags.BigGraphiteTagDB(
         accessor=self.accessor,
         metadata_cache=self.metadata_cache,
     )
예제 #2
0
    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,
        )
예제 #3
0
    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