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

Method update

test_haystack/mocks.py:51–55  ·  view source on GitHub ↗
(self, index, iterable, commit=True)

Source from the content-addressed store, hash-verified

49 model_name = "mockmodel"
50
51 def update(self, index, iterable, commit=True):
52 global MOCK_INDEX_DATA
53 for obj in iterable:
54 doc = index.full_prepare(obj)
55 MOCK_INDEX_DATA[doc["id"]] = doc
56
57 def remove(self, obj, commit=True):
58 global MOCK_INDEX_DATA

Callers 15

setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
test_more_like_thisMethod · 0.45
test_runMethod · 0.45
test_log_queryMethod · 0.45
setUpMethod · 0.45
test_manual_iterMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls 1

full_prepareMethod · 0.80

Tested by 15

setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
test_more_like_thisMethod · 0.36
test_runMethod · 0.36
test_log_queryMethod · 0.36
setUpMethod · 0.36
test_manual_iterMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36