@@ -52,6 +52,36 @@ def test_r_plus_with_sha():
52
52
assert command .actor == 'jack'
53
53
assert command .commit == other_commit
54
54
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
+
55
85
56
86
def test_r_equals ():
57
87
"""
@@ -83,6 +113,36 @@ def test_r_equals_at_user():
83
113
assert command .actor == 'jill'
84
114
85
115
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
+
86
146
def test_hidden_r_equals ():
87
147
author = "bors"
88
148
body = """
0 commit comments