@@ -52,6 +52,36 @@ def test_r_plus_with_sha():
5252 assert command .actor == 'jack'
5353 assert command .commit == other_commit
5454
55+ def test_r_plus_await ():
56+ """
57+ @bors r+ await
58+ """
59+
60+ author = "jack"
61+ body = "@bors r+ await"
62+ commands = parse_issue_comment (author , body , commit , "bors" )
63+
64+ assert len (commands ) == 1
65+ command = commands [0 ]
66+ assert command .action == 'approve-await'
67+ assert command .actor == 'jack'
68+
69+
70+ def test_r_plus_await_with_sha ():
71+ """
72+ @bors r+ {sha} await
73+ """
74+
75+ author = "jack"
76+ body = "@bors r+ {} await" .format (other_commit )
77+ commands = parse_issue_comment (author , body , commit , "bors" )
78+
79+ assert len (commands ) == 1
80+ command = commands [0 ]
81+ assert command .action == 'approve-await'
82+ assert command .actor == 'jack'
83+ assert command .commit == other_commit
84+
5585
5686def test_r_equals ():
5787 """
@@ -83,6 +113,36 @@ def test_r_equals_at_user():
83113 assert command .actor == 'jill'
84114
85115
116+ def test_r_equals_await ():
117+ """
118+ @bors r=jill await
119+ """
120+
121+ author = "jack"
122+ body = "@bors r=jill await"
123+ commands = parse_issue_comment (author , body , commit , "bors" )
124+
125+ assert len (commands ) == 1
126+ command = commands [0 ]
127+ assert command .action == 'approve-await'
128+ assert command .actor == 'jill'
129+
130+
131+ def test_r_equals_at_user ():
132+ """
133+ @bors r=@jill await
134+ """
135+
136+ author = "jack"
137+ body = "@bors r=@jill await"
138+ commands = parse_issue_comment (author , body , commit , "bors" )
139+
140+ assert len (commands ) == 1
141+ command = commands [0 ]
142+ assert command .action == 'approve-await'
143+ assert command .actor == 'jill'
144+
145+
86146def test_hidden_r_equals ():
87147 author = "bors"
88148 body = """
0 commit comments