summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-09-14 16:40:39 +0800
committereltrac <hi@eltr.ac>2026-09-14 17:15:10 +0800
commit2ddf4e3fe155b1e4ff5dde8a587758d37d665ed4 (patch)
tree33ae7147026b777f316ad0f85b8c11483090c4e5
parent435e63927da0594e410f6100e3e2e0f5f64cfbf2 (diff)
tests: disable logging in tests
-rw-r--r--test/weepinbell/processor_test.clj4
-rw-r--r--test/weepinbell/test_utility.clj6
-rw-r--r--test/weepinbell/verifier_test.clj4
3 files changed, 11 insertions, 3 deletions
diff --git a/test/weepinbell/processor_test.clj b/test/weepinbell/processor_test.clj
index 3756f4f..5f5a750 100644
--- a/test/weepinbell/processor_test.clj
+++ b/test/weepinbell/processor_test.clj
@@ -1,6 +1,8 @@
(ns weepinbell.processor-test
(:require [clojure.test :refer [deftest is testing]]
- [weepinbell.test-utility :refer [with-webmention]]))
+ [weepinbell.test-utility :refer [with-webmention disable-logging]]))
+
+(disable-logging)
;; Testing process-new-webmention
;; though we're calling a proxy function (process-webmention)
diff --git a/test/weepinbell/test_utility.clj b/test/weepinbell/test_utility.clj
index 22a6549..0e120c9 100644
--- a/test/weepinbell/test_utility.clj
+++ b/test/weepinbell/test_utility.clj
@@ -1,7 +1,8 @@
(ns weepinbell.test-utility
(:require [compojure.core :refer [GET routes]]
[org.httpkit.server :refer [run-server]]
- [weepinbell.processor :as p]))
+ [weepinbell.processor :as p]
+ [taoensso.timbre :refer [merge-config!]]))
(def mock-callbacks {:on-create (fn [])
:on-delete (fn [])
@@ -29,3 +30,6 @@
~@body
(~'server))))
+(defn disable-logging []
+ (merge-config! {:min-level :report}))
+
diff --git a/test/weepinbell/verifier_test.clj b/test/weepinbell/verifier_test.clj
index 9b81a72..2e375a5 100644
--- a/test/weepinbell/verifier_test.clj
+++ b/test/weepinbell/verifier_test.clj
@@ -1,7 +1,9 @@
(ns weepinbell.verifier-test
(:require [clojure.test :refer [deftest testing is]]
[weepinbell.verifier :as v]
- [weepinbell.test-utility :refer [with-webmention]]))
+ [weepinbell.test-utility :refer [with-webmention disable-logging]]))
+
+(disable-logging)
(deftest verification-happy-paths-test
(testing "Test if processor can correctly verifies a Webmention."