Skip to content

Commit 40211e7

Browse files
committed
Update tests
1 parent 594df90 commit 40211e7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

homu/tests/test_parse_issue_comment.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,21 @@ def test_rollup_minus():
299299
assert command.rollup_value == 0
300300

301301

302+
def test_rollup_iffy():
303+
"""
304+
@bors rollup=iffy
305+
"""
306+
307+
author = "manishearth"
308+
body = "@bors rollup=iffy"
309+
commands = parse_issue_comment(author, body, commit, "bors")
310+
311+
assert len(commands) == 1
312+
command = commands[0]
313+
assert command.action == 'rollup'
314+
assert command.rollup_value == -1
315+
316+
302317
def test_rollup_never():
303318
"""
304319
@bors rollup=never
@@ -311,7 +326,7 @@ def test_rollup_never():
311326
assert len(commands) == 1
312327
command = commands[0]
313328
assert command.action == 'rollup'
314-
assert command.rollup_value == -1
329+
assert command.rollup_value == -2
315330

316331

317332
def test_rollup_maybe():

0 commit comments

Comments
 (0)