MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / test_facets

Method test_facets

test_haystack/test_managers.py:117–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 self.assertEqual(len(sqs.query.boost.keys()), 1)
116
117 def test_facets(self):
118 sqs = self.search_index.objects.facet("foo")
119 self.assertTrue(isinstance(sqs, SearchQuerySet))
120 self.assertEqual(len(sqs.query.facets), 1)
121
122 @unittest.skipUnless(HAVE_GDAL, "Requires gdal library")
123 def test_within(self):

Callers

nothing calls this directly

Calls 1

facetMethod · 0.45

Tested by

no test coverage detected