]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.el
test: add known broken tests for notuch-{before,after}-tag-hook
[notmuch] / test / test-lib.el
index 4de5b292c6071cb54e3dcf89e4c06fb64288fa27..32d53736482493f3cf336c187b0990cd97d57223 100644 (file)
@@ -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