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

Class ReadQuerySetMockSearchBackend

test_haystack/mocks.py:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130class ReadQuerySetMockSearchBackend(MockSearchBackend):
131 model_name = "afifthmockmodel"
132 mock_search_results = [
133 MockSearchResult("core", "afifthmockmodel", 1, 2),
134 MockSearchResult("core", "afifthmockmodel", 2, 2),
135 ]
136
137
138class MixedMockSearchBackend(MockSearchBackend):

Callers 1

Calls 1

MockSearchResultClass · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…