Skip to content

Commit 4aa3678

Browse files
fix: auto-build index for hosted scanners
1 parent 80a2545 commit 4aa3678

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_stdio_hygiene.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,16 @@ def test_server_startup_no_index_stderr_only(self):
6767
import tempfile
6868

6969
with tempfile.TemporaryDirectory() as tmpdir:
70+
env = {
71+
**_isolated_cache_env(tmpdir),
72+
"PYTHON_DOCS_MCP_DISABLE_AUTO_INDEX": "1",
73+
}
7074
result = subprocess.run(
7175
[sys.executable, "-m", "mcp_server_python_docs", "serve"],
7276
capture_output=True,
7377
text=True,
7478
timeout=10,
75-
env=_isolated_cache_env(tmpdir),
79+
env=env,
7680
)
7781
# Server should exit with error (missing index)
7882
assert result.returncode != 0

0 commit comments

Comments
 (0)