@@ -147,17 +147,24 @@ def test_stale_codebase_entry_purged(self, tmp_path, monkeypatch):
147147 purged so the install path can re-run instead of silently
148148 breaking ingest_codebase."""
149149 config_path = tmp_path / "mcp-connections.json"
150- config_path .write_text (json .dumps ({
151- "servers" : {
152- "codebase" : {"command" : "/nonexistent/mcp" , "args" : []},
153- "other" : {"command" : "node" , "args" : ["/x.js" ]},
154- }
155- }))
150+ config_path .write_text (
151+ json .dumps (
152+ {
153+ "servers" : {
154+ "codebase" : {"command" : "/nonexistent/mcp" , "args" : []},
155+ "other" : {"command" : "node" , "args" : ["/x.js" ]},
156+ }
157+ }
158+ )
159+ )
156160 monkeypatch .setattr (pipeline_discovery , "MCP_CONNECTIONS_PATH" , config_path )
157161 # Simulate fresh discovery finding nothing (no install attempted
158162 # because we monkeypatch install_pipeline import).
159- monkeypatch .setattr (pipeline_discovery , "discover_pipeline_command" , lambda : None )
163+ monkeypatch .setattr (
164+ pipeline_discovery , "discover_pipeline_command" , lambda : None
165+ )
160166 from mcp_server .infrastructure import pipeline_installer
167+
161168 monkeypatch .setattr (
162169 pipeline_installer ,
163170 "install_pipeline" ,
@@ -321,6 +328,7 @@ def test_missing_toolchain_returns_structured_failure(self, tmp_path, monkeypatc
321328 tmp_path / "nonexistent" / "mcp-server" ,
322329 )
323330 from mcp_server .infrastructure import pipeline_install_rust
331+
324332 # Disable the GitHub-Releases fast-path so the missing-toolchain
325333 # branch is reachable.
326334 monkeypatch .setattr (
@@ -384,7 +392,9 @@ def test_prebuilt_unsupported_platform(self, monkeypatch):
384392 from mcp_server .infrastructure import pipeline_install_release
385393
386394 monkeypatch .delenv ("CORTEX_DISABLE_PREBUILT" , raising = False )
387- monkeypatch .setattr (pipeline_install_release .platform , "system" , lambda : "OpenBSD" )
395+ monkeypatch .setattr (
396+ pipeline_install_release .platform , "system" , lambda : "OpenBSD"
397+ )
388398 result = pipeline_install_release .try_install_prebuilt (Path ("/tmp/symlink" ))
389399 assert result ["action" ] == "prebuilt_unsupported_platform"
390400
@@ -432,7 +442,9 @@ def test_install_failure_in_ensure_does_not_crash(self, tmp_path, monkeypatch):
432442
433443 config_path = tmp_path / "mcp-connections.json"
434444 monkeypatch .setattr (pipeline_discovery , "MCP_CONNECTIONS_PATH" , config_path )
435- monkeypatch .setattr (pipeline_discovery , "discover_pipeline_command" , lambda : None )
445+ monkeypatch .setattr (
446+ pipeline_discovery , "discover_pipeline_command" , lambda : None
447+ )
436448 monkeypatch .setattr (
437449 pipeline_installer ,
438450 "install_pipeline" ,
0 commit comments