[PATCH 21/23] CLI/address: tests for split config

Subject: [PATCH 21/23] CLI/address: tests for split config

Date: Sun, 7 Feb 2021 20:41:07 -0400

To: notmuch@notmuchmail.org

Cc: David Bremner

From: David Bremner


output=recipients requires access to raw mail files.
---
 test/T055-path-config.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index d0019cd1..13086e50 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -141,6 +141,15 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
 > basic reply test
 EOF
     test_expect_equal_file EXPECTED OUTPUT
+
+    test_begin_subtest "address ($config)"
+    notmuch address --deduplicate=no --sort=newest-first --output=sender --output=recipients path:foo >OUTPUT
+    cat <<EOF >EXPECTED
+Carl Worth <cworth@cworth.org>
+notmuch@notmuchmail.org
+EOF
+    test_expect_equal_file EXPECTED OUTPUT
+
     restore_config
 done
 
-- 
2.30.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: