From 9875db2f8236ca48dadf025350358c0d9374b056 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 6 Aug 2026 16:50:10 +0000 Subject: [PATCH] :bug: Fix media-remote-test falling back to real config in REPL The info-service-uri-not-configured test used config-get-mock with an empty map, which falls back to cf/config for missing keys. In a REPL with real config, media-processing-service-uri is set, causing the code to attempt an HTTP call instead of raising the expected error. Use (constantly nil) to ensure cf/get always returns nil, matching the test intent of simulating an unconfigured service URI. AI-assisted-by: mimo-v2.5 --- backend/test/backend_tests/media_remote_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test/backend_tests/media_remote_test.clj b/backend/test/backend_tests/media_remote_test.clj index dbaf8cb889..dfa8b16d05 100644 --- a/backend/test/backend_tests/media_remote_test.clj +++ b/backend/test/backend_tests/media_remote_test.clj @@ -99,7 +99,7 @@ (t/deftest info-service-uri-not-configured (t/testing "info throws when service URI is not configured" - (with-redefs [cf/get (th/config-get-mock {})] + (with-redefs [cf/get (constantly nil)] (let [path (th/tempfile "backend_tests/test_files/sample.jpg") err (ex/try! (media.remote/process (mk-system) {:cmd :info :input {:path path :mtype "image/jpeg"}}))]