Skip to content

Commit 905170b

Browse files
Bruce Haumanclaude
andcommitted
Fix test failures by adding dry_run parameter to pipeline calls
Updated three execute-tool methods in tool.clj and two test methods in pipeline_test.clj to pass the new dry_run parameter (as nil) to edit-form-pipeline, which now requires 7 arguments instead of 6. All 365 tests now pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent dfca0da commit 905170b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/clojure_mcp/tools/form_edit/tool.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Note: For `defmethod` forms, be sure to include the dispatch value (`area :recta
164164

165165
(defmethod tool-system/execute-tool :clojure-edit-replace-form [{:keys [nrepl-client-atom] :as tool} inputs]
166166
(let [{:keys [file_path form_name form_type content]} inputs
167-
result (pipeline/edit-form-pipeline file_path form_name form_type content :replace tool)
167+
result (pipeline/edit-form-pipeline file_path form_name form_type content :replace nil tool)
168168
formatted-result (pipeline/format-result result)]
169169
formatted-result))
170170

@@ -256,7 +256,7 @@ Note: For `defmethod` forms, be sure to include the dispatch value (`area :recta
256256

257257
(defmethod tool-system/execute-tool :clojure-edit-insert-before-form [{:keys [nrepl-client-atom] :as tool} inputs]
258258
(let [{:keys [file_path form_name form_type content]} inputs
259-
result (pipeline/edit-form-pipeline file_path form_name form_type content :before tool)
259+
result (pipeline/edit-form-pipeline file_path form_name form_type content :before nil tool)
260260
formatted-result (pipeline/format-result result)]
261261
formatted-result))
262262

@@ -348,7 +348,7 @@ Note: For `defmethod` forms, be sure to include the dispatch value (`area :recta
348348

349349
(defmethod tool-system/execute-tool :clojure-edit-insert-after-form [{:keys [nrepl-client-atom] :as tool} inputs]
350350
(let [{:keys [file_path form_name form_type content]} inputs
351-
result (pipeline/edit-form-pipeline file_path form_name form_type content :after tool)
351+
result (pipeline/edit-form-pipeline file_path form_name form_type content :after nil tool)
352352
formatted-result (pipeline/format-result result)]
353353
formatted-result))
354354

test/clojure_mcp/tools/form_edit/pipeline_test.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@
294294
"defn"
295295
"(defn example-fn [x y]\n (* x y))"
296296
:replace
297+
nil
297298
*nrepl-client-atom*)
298299
result (sut/format-result pipeline-result)
299300
file-content (slurp file-path)]
@@ -316,6 +317,7 @@
316317
"comment"
317318
"(comment some test comment)"
318319
:replace
320+
nil
319321
*nrepl-client-atom*)]
320322
(is (true? (::sut/error pipeline-result)))
321323
(is (string? (::sut/message pipeline-result)))

0 commit comments

Comments
 (0)