branch: externals/ellama commit 84abd87b731c2580dd7a802d3f74b64a7008ce72 Author: Sergey Kostyaev <sskosty...@gmail.com> Commit: Sergey Kostyaev <sskosty...@gmail.com>
Add mock provider for tests Added a mock provider using llm-fake to simulate API responses in tests. This allows for more controlled and consistent testing scenarios. --- tests/test-ellama.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-ellama.el b/tests/test-ellama.el index 97a3389b67..5e7100e6c4 100644 --- a/tests/test-ellama.el +++ b/tests/test-ellama.el @@ -29,6 +29,7 @@ (require 'ellama-context) (require 'ellama-transient) (require 'ert) +(require 'llm-fake) (ert-deftest test-ellama--code-filter () (should (equal "" (ellama--code-filter ""))) @@ -38,6 +39,7 @@ (ert-deftest test-ellama-code-improve () (let ((original "(hello)\n") (improved "```lisp\n(hello)\n```") + (ellama-provider (make-llm-fake)) prev-lines) (with-temp-buffer (insert original)