From 3cb7ecf4e03c599d9e6f0b2416082025d3fa849a Mon Sep 17 00:00:00 2001 From: Twist Date: Tue, 23 Aug 2022 19:50:00 +0100 Subject: Add malformed co-authors to the test, to check they aren't detected with the regex. --- test/test_commit.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test_commit.py b/test/test_commit.py index cf8e1db6..a08ac39b 100644 --- a/test/test_commit.py +++ b/test/test_commit.py @@ -515,8 +515,12 @@ JzJMZDRLQLFvnzqZuCjE commit.message = """Commit message Co-authored-by: Test User 1 <602352+test@users.noreply.github.com> -Co-authored-by: test_user_2 """ +Co-authored-by: test_user_2 +Co_authored_by: test_user_x +Co-authored-by: test_user_y +Co-authored-by: test_user_3 """ assert commit.co_authors == [ Actor("Test User 1", "602352+test@users.noreply.github.com"), - Actor("test_user_2", "another_user-email@.github.com"), + Actor("test_user_2", "another_user-email@github.com"), + Actor("test_user_3", "test_user_3@github.com"), ] -- cgit v1.2.1