Skip to content

Commit eae4ebe

Browse files
authored
Add test for stripping leading @ in "r=@approver"
1 parent e06b6a2 commit eae4ebe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

homu/tests/test_parse_issue_comment.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ def test_r_equals():
6868
assert command.actor == 'jill'
6969

7070

71+
def test_r_equals_at_user():
72+
"""
73+
@bors r=@jill
74+
"""
75+
76+
author = "jack"
77+
body = "@bors r=@jill"
78+
commands = parse_issue_comment(author, body, commit, "bors")
79+
80+
assert len(commands) == 1
81+
command = commands[0]
82+
assert command.action == 'approve'
83+
assert command.actor == 'jill'
84+
85+
7186
def test_hidden_r_equals():
7287
author = "bors"
7388
body = """

0 commit comments

Comments
 (0)