mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test: fix tests after notmuch show output changes related to filenames
Adding the filename propery alongside ID and Content-type. This makes the test suite pass again after the recent change.
This commit is contained in:
parent
1a27b33f20
commit
f74c4bc2f3
2 changed files with 5 additions and 10 deletions
|
@ -168,8 +168,7 @@ Non-text part: application/pgp-encrypted
|
|||
part{ ID: 4, Content-type: text/plain
|
||||
This is a test encrypted message.
|
||||
part}
|
||||
attachment{ ID: 5, Content-type: application/octet-stream
|
||||
Attachment: TESTATTACHMENT (application/octet-stream)
|
||||
attachment{ ID: 5, Filename: TESTATTACHMENT, Content-type: application/octet-stream
|
||||
Non-text part: application/octet-stream
|
||||
attachment}
|
||||
part}
|
||||
|
|
|
@ -110,8 +110,7 @@ Date: Tue, 05 Jan 2001 15:43:57 -0000
|
|||
Non-text part: text/html
|
||||
part}
|
||||
part}
|
||||
attachment{ ID: 5, Content-type: text/plain
|
||||
Attachment: attachment (text/plain)
|
||||
attachment{ ID: 5, Filename: attachment, Content-type: text/plain
|
||||
This is a text attachment.
|
||||
attachment}
|
||||
part{ ID: 6, Content-type: text/plain
|
||||
|
@ -148,8 +147,7 @@ Date: Tue, 05 Jan 2001 15:43:57 -0000
|
|||
Non-text part: text/html
|
||||
part}
|
||||
part}
|
||||
attachment{ ID: 5, Content-type: text/plain
|
||||
Attachment: attachment (text/plain)
|
||||
attachment{ ID: 5, Filename: attachment, Content-type: text/plain
|
||||
This is a text attachment.
|
||||
attachment}
|
||||
part{ ID: 6, Content-type: text/plain
|
||||
|
@ -176,8 +174,7 @@ cat <<EOF >EXPECTED
|
|||
Non-text part: text/html
|
||||
part}
|
||||
part}
|
||||
attachment{ ID: 5, Content-type: text/plain
|
||||
Attachment: attachment (text/plain)
|
||||
attachment{ ID: 5, Filename: attachment, Content-type: text/plain
|
||||
This is a text attachment.
|
||||
attachment}
|
||||
part{ ID: 6, Content-type: text/plain
|
||||
|
@ -212,8 +209,7 @@ test_expect_equal_file OUTPUT EXPECTED
|
|||
test_begin_subtest "--format=text --part=5, inline attachment"
|
||||
notmuch show --format=text --part=5 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT
|
||||
cat <<EOF >EXPECTED
|
||||
attachment{ ID: 5, Content-type: text/plain
|
||||
Attachment: attachment (text/plain)
|
||||
attachment{ ID: 5, Filename: attachment, Content-type: text/plain
|
||||
This is a text attachment.
|
||||
attachment}
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue