aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.el
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-05-08 09:11:11 -0300
committerDavid Bremner <david@tethera.net>2021-05-15 08:31:00 -0300
commita663783343cb992d132ecc18e4e4d4e37bbf12e9 (patch)
treee281b11ef80d3671a48da5bd2ff130d2a478d04e /test/test-lib.el
parent267365b711c3f81ffbe4bafd0fca6d6ede03685d (diff)
test: add known broken tests for notuch-{before,after}-tag-hook
These tests illustrate the bug reported in id:87v97ytd2s.fsf@fastmail.fm
Diffstat (limited to 'test/test-lib.el')
-rw-r--r--test/test-lib.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-lib.el b/test/test-lib.el
index 4de5b292..32d53736 100644
--- a/test/test-lib.el
+++ b/test/test-lib.el
@@ -99,6 +99,9 @@ running, quit if it terminated."
(add-hook 'notmuch-hello-refresh-hook
(lambda () (cl-incf notmuch-hello-refresh-hook-counter)))
+(defvar notmuch-test-tag-hook-output nil)
+(defun notmuch-test-tag-hook () (push (cons query tag-changes) notmuch-test-tag-hook-output))
+
(defun notmuch-test-mark-links ()
"Enclose links in the current buffer with << and >>."
;; Links are often created by jit-lock functions