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

Method __init__

test_haystack/mocks.py:37–39  ·  view source on GitHub ↗
(self, app_label, model_name, pk, score, **kwargs)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

get_modelMethod · 0.45

Tested by

no test coverage detected