pick: Use list form of tag-changes in test

Currently we support both string and list forms of tag-changes for
historical reasons.  This is about to change, so fix pick's tests that
use the legacy string form of tag-changes.
This commit is contained in:
Austin Clements 2013-10-22 20:21:59 -04:00 committed by David Bremner
parent 14971fe57c
commit 3c3304131d

View file

@ -44,7 +44,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")
(notmuch-pick "tag:inbox") (notmuch-pick "tag:inbox")
(notmuch-test-wait) (notmuch-test-wait)
(forward-line) (forward-line)
(notmuch-pick-tag "+test_tag") (notmuch-pick-tag (list "+test_tag"))
(test-output) (test-output)
(delete-other-windows)' (delete-other-windows)'
test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-tagged test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-tagged
@ -59,7 +59,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")
(notmuch-pick "tag:inbox") (notmuch-pick "tag:inbox")
(notmuch-test-wait) (notmuch-test-wait)
(forward-line) (forward-line)
(notmuch-pick-tag "-test_tag") (notmuch-pick-tag (list "-test_tag"))
(test-output) (test-output)
(delete-other-windows)' (delete-other-windows)'
test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox
@ -75,7 +75,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")
(notmuch-test-wait) (notmuch-test-wait)
;; move to a sizable thread ;; move to a sizable thread
(forward-line 26) (forward-line 26)
(notmuch-pick-tag-thread "+test_thread_tag") (notmuch-pick-tag-thread (list "+test_thread_tag"))
(test-output) (test-output)
(delete-other-windows)' (delete-other-windows)'
test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-thread-tagged test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox-thread-tagged
@ -98,7 +98,7 @@ test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")
(notmuch-test-wait) (notmuch-test-wait)
;; move to the same sizable thread as above ;; move to the same sizable thread as above
(forward-line 26) (forward-line 26)
(notmuch-pick-tag-thread "-test_thread_tag") (notmuch-pick-tag-thread (list "-test_thread_tag"))
(test-output) (test-output)
(delete-other-windows)' (delete-other-windows)'
test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-tag-inbox