diff options
| author | eltrac <hi@eltr.ac> | 2026-09-15 16:33:19 +0800 |
|---|---|---|
| committer | Eltrac <hi@eltr.ac> | 2026-09-23 04:14:03 +0200 |
| commit | dd668cbaf29d27df8ad9d7c8d0973ed4f3977578 (patch) | |
| tree | 6316505f9e21683ec138ccb4305f494a75dbc323 | |
| parent | 854559e0620de71b429bb68246dbffde7115c696 (diff) | |
test: do not disable logging for they're part of code that tests should cover
| -rw-r--r-- | test/weepinbell/processor_test.clj | 4 | ||||
| -rw-r--r-- | test/weepinbell/test_utility.clj | 6 | ||||
| -rw-r--r-- | test/weepinbell/verifier_test.clj | 4 |
3 files changed, 3 insertions, 11 deletions
diff --git a/test/weepinbell/processor_test.clj b/test/weepinbell/processor_test.clj index 5f5a750..3756f4f 100644 --- a/test/weepinbell/processor_test.clj +++ b/test/weepinbell/processor_test.clj @@ -1,8 +1,6 @@ (ns weepinbell.processor-test (:require [clojure.test :refer [deftest is testing]] - [weepinbell.test-utility :refer [with-webmention disable-logging]])) - -(disable-logging) + [weepinbell.test-utility :refer [with-webmention]])) ;; 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 8a18e7d..b92f3a9 100644 --- a/test/weepinbell/test_utility.clj +++ b/test/weepinbell/test_utility.clj @@ -1,8 +1,7 @@ (ns weepinbell.test-utility (:require [compojure.core :refer [GET routes]] [org.httpkit.server :refer [run-server]] - [weepinbell.processor :as p] - [taoensso.timbre :refer [merge-config!]])) + [weepinbell.processor :as p])) (def mock-callbacks {:on-create (fn [_]) :on-delete (fn [_]) @@ -35,6 +34,3 @@ ~@body (finally (~'server)))))) -(defn disable-logging [] - (merge-config! {:min-level :report})) - diff --git a/test/weepinbell/verifier_test.clj b/test/weepinbell/verifier_test.clj index e63a73a..e82ebb0 100644 --- a/test/weepinbell/verifier_test.clj +++ b/test/weepinbell/verifier_test.clj @@ -1,9 +1,7 @@ (ns weepinbell.verifier-test (:require [clojure.test :refer [deftest testing is]] [weepinbell.verifier :as v] - [weepinbell.test-utility :refer [with-webmention disable-logging]])) - -(disable-logging) + [weepinbell.test-utility :refer [with-webmention]])) (deftest verification-happy-paths-test (testing "Test if processor can correctly verifies a Webmention." |
