Address cross-provider review findings for browse-path resolve and test anchor
This commit is contained in:
1 parent
46c3e495fc
commit
3f6369ae5c
2 files changed
+2
-1
No files matched your search
@@ -7337,6 +7337,7 @@ def handle_get(handler, parsed) -> bool:
|
||||
if not wiki_root or not os.path.isdir(wiki_root):
|
||||
return bad(handler, "Wiki not configured or directory not found", status=404)
|
||||
page_paths = _llm_wiki_page_files(wiki_root)
|
||||
wiki_root = Path(wiki_root).resolve()
|
||||
pages = []
|
||||
for fp in sorted(page_paths, key=lambda p: str(p).lower()):
|
||||
try:
|
||||
|
||||
@@ -42,7 +42,7 @@ def test_count_files_has_iteration_cap():
|
||||
|
||||
def test_page_files_has_iteration_cap():
|
||||
src = _read_source()
|
||||
start = src.find("def _llm_wiki_page_files(")
|
||||
start = src.find("def _llm_wiki_page_files_uncached(")
|
||||
end = src.find("\ndef ", start + 1)
|
||||
body = src[start:end]
|
||||
assert "_LLM_WIKI_MAX_FILES" in body
|
||||
|
||||
Reference in new issue
Block a user