@@ -4,6 +4,7 @@ Date: Tue, 30 Aug 2022 11:19:07 -0400
This is a simple trailer parsing test.
+Reported-by: "Doe, Jane" <jane@example.com>
Reviewed-by: Bogus Bupkes <bogus@example.com>
Fixes: abcdef01234567890
Link: https://msgid.link/some@msgid.here
@@ -57,7 +57,8 @@ def test_save_git_am_mbox(sampledir, tmp_path, source, regex, flags, ismbox):
@pytest.mark.parametrize('source,expected', [
('trailers-test-simple',
- [('person', 'Reviewed-by', 'Bogus Bupkes <bogus@example.com>', None),
+ [('person', 'Reported-by', '"Doe, Jane" <jane@example.com>', None),
+ ('person', 'Reviewed-by', 'Bogus Bupkes <bogus@example.com>', None),
('utility', 'Fixes', 'abcdef01234567890', None),
('utility', 'Link', 'https://msgid.link/some@msgid.here', None),
]),
Test that email trailers with special characters are parsed correctly. Signed-off-by: Brandon Maier <brandon.maier@gmail.com> --- src/tests/samples/trailers-test-simple.txt | 1 + src/tests/test___init__.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)