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

Class MockSearchResult

test_haystack/mocks.py:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36class MockSearchResult(SearchResult):
37 def __init__(self, app_label, model_name, pk, score, **kwargs):
38 super().__init__(app_label, model_name, pk, score, **kwargs)
39 self._model = apps.get_model("core", model_name)
40
41
42MOCK_SEARCH_RESULTS = [

Callers 6

setUpMethod · 0.85
mocks.pyFile · 0.85
searchMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…