@@ -4,6 +4,7 @@ Date: Tue, 30 Aug 2022 11:19:07 -0400
This is a simple trailer parsing test.
+Reported-by: Some, One <somewhere@example.com>
Reviewed-by: Bogus Bupkes <bogus@example.com>
[for the parts that are bogus]
Fixes: abcdef01234567890
@@ -62,7 +62,8 @@ def test_save_git_am_mbox(sampledir, tmp_path, source, regex, flags, ismbox):
('utility', 'Link', 'https://msgid.link/some@msgid.here', None),
]),
('trailers-test-extinfo',
- [('person', 'Reviewed-by', 'Bogus Bupkes <bogus@example.com>', '[for the parts that are bogus]'),
+ [('unknown', 'Reported-by', 'Some, One <somewhere@example.com>', None),
+ ('person', 'Reviewed-by', 'Bogus Bupkes <bogus@example.com>', '[for the parts that are bogus]'),
('utility', 'Fixes', 'abcdef01234567890', None),
('person', 'Tested-by', 'Some Person <bogus2@example.com>', ' [this person visually indented theirs]'),
('utility', 'Link', 'https://msgid.link/some@msgid.here', ' # initial submission'),
Check that a trailer with an improperly formatted email address will still parse to something usable. Signed-off-by: Brandon Maier <brandon.maier@gmail.com> --- src/tests/samples/trailers-test-extinfo.txt | 1 + src/tests/test___init__.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)