aboutsummaryrefslogtreecommitdiff
path: root/tests/testutil-ai-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 02:43:48 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 02:43:48 -0500
commitec1cff3104a0a7700457a0039aa21931d45f65e9 (patch)
tree7d16685c792aa235ba6eab248ce8d3a523a0fd03 /tests/testutil-ai-config.el
parent7e4c0c7a82d0f2d51d4061cfba5944f1198bc314 (diff)
downloaddotemacs-ec1cff3104a0a7700457a0039aa21931d45f65e9.tar.gz
dotemacs-ec1cff3104a0a7700457a0039aa21931d45f65e9.zip
Move GPTel tool loading into AI config
Move the local GPTel tool wiring out of init.el and into ai-config. The tools directory and feature list are now configurable, missing optional tools are non-fatal, and focused tests cover the loading behavior.
Diffstat (limited to 'tests/testutil-ai-config.el')
-rw-r--r--tests/testutil-ai-config.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testutil-ai-config.el b/tests/testutil-ai-config.el
index e8953389..c7486222 100644
--- a/tests/testutil-ai-config.el
+++ b/tests/testutil-ai-config.el
@@ -7,6 +7,12 @@
;;; Code:
+(setq load-prefer-newer t)
+
+;; Keep ai-config tests isolated from personal optional GPTel tool files.
+(defvar cj/gptel-tools-directory (make-temp-file "gptel-tools-empty-" t))
+(defvar cj/gptel-local-tool-features nil)
+
;; Pre-cache API keys so auth-source is never consulted
(defvar cj/anthropic-api-key-cached "test-anthropic-key")
(defvar cj/openai-api-key-cached "test-openai-key")