summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTwist <itsluketwist@gmail.com>2022-08-23 19:50:00 +0100
committerTwist <itsluketwist@gmail.com>2022-08-23 19:50:00 +0100
commit3cb7ecf4e03c599d9e6f0b2416082025d3fa849a (patch)
tree9562e9033b38b2bf13f61cda9269ed84219d0be6
parent146cbdaffdd1b551e6689f162e26226d5a351d6e (diff)
downloadgitpython-3cb7ecf4e03c599d9e6f0b2416082025d3fa849a.tar.gz
Add malformed co-authors to the test, to check they aren't detected with the regex.
-rw-r--r--test/test_commit.py8
1 files 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 <another_user-email@.github.com>"""
+Co-authored-by: test_user_2 <another_user-email@github.com>
+Co_authored_by: test_user_x <test@github.com>
+Co-authored-by: test_user_y <poorly formatted email @github.com>
+Co-authored-by: test_user_3 <test_user_3@github.com>"""
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"),
]