Use the quick read feature wherever we only need document text
This commit is contained in:
@@ -423,9 +423,6 @@ def testCoreTools_DocSearch(monkeypatch, mockGUI, fncPath, mockRnd, ipsumText):
|
||||
assert result[1] == (C.hChapterDoc, [], False)
|
||||
assert result[2] == (C.hSceneDoc, [(8, 5, "Scene")], False)
|
||||
|
||||
# Cache
|
||||
assert list(search._cache.keys()) == [C.hTitlePage, C.hChapterDoc, C.hSceneDoc]
|
||||
|
||||
# Patterns
|
||||
# ========
|
||||
|
||||
|
||||
@@ -60,9 +60,8 @@ def testCoreIndex_LoadSave(qtbot, monkeypatch, prjLipsum, mockGUI, tstPaths):
|
||||
"60bdf227455cc": False, # World ROOT
|
||||
}
|
||||
for tItem in project.tree:
|
||||
assert index.reIndexHandle(tItem.itemHandle) is notIndexable.get(tItem.itemHandle, True)
|
||||
|
||||
assert index.reIndexHandle(None) is False
|
||||
index.reIndexHandle(tItem.itemHandle)
|
||||
assert (tItem.itemHandle in index._itemIndex) is notIndexable.get(tItem.itemHandle, True)
|
||||
|
||||
# No folder for saving
|
||||
with monkeypatch.context() as mp:
|
||||
|
||||
Reference in New Issue
Block a user