-
Notifications
You must be signed in to change notification settings - Fork 163
Future Tests
Patrick Totzke edited this page Jul 11, 2018
·
1 revision
In future we should have a corpus of test mails that expose certain errors, and a way to easily set up a (notmuch) enviroinment that includes those mails. Until we do, I collect some tests that I don't know how to write.
The height of thread lines #1262
Test that search mode thread lines occupy only one line. This will fail if the focussed thread contains a mail with author "吴鹏".
Message:
Subject: test issue #1262
From: =?utf-8?b?5ZC06bmP?=
To: recipient@test.com
testing issue #1262.
To test:
# focus thread containing above msg in search buffer. Then,
sb = ui.current_buffer # search buffer
tl = sb.get_selected_threadline() # selected ThreadlineWidget
awidth = 79 # available space
rwith, rheight = tl.pack((awidth,)) # real amount of space used
assert rheight == 1