MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / test_boost

Method test_boost

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

Source from the content-addressed store, hash-verified

110 self.assertEqual(sqs.query.highlight, True)
111
112 def test_boost(self):
113 sqs = self.search_index.objects.boost("foo", 10)
114 self.assertTrue(isinstance(sqs, SearchQuerySet))
115 self.assertEqual(len(sqs.query.boost.keys()), 1)
116
117 def test_facets(self):
118 sqs = self.search_index.objects.facet("foo")

Callers

nothing calls this directly

Calls 1

boostMethod · 0.45

Tested by

no test coverage detected