From 6dc88f3b19a7518276ee8a5fd05a1110dd65d1b8 Mon Sep 17 00:00:00 2001 From: Camelid Date: Wed, 4 Nov 2020 21:09:28 -0800 Subject: [PATCH] Fix mistake --- homu/parse_issue_comment.py | 2 +- homu/tests/test_parse_issue_comment.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/homu/parse_issue_comment.py b/homu/parse_issue_comment.py index 538ce73..a439eae 100644 --- a/homu/parse_issue_comment.py +++ b/homu/parse_issue_comment.py @@ -206,7 +206,7 @@ def parse_issue_comment(username, body, sha, botname, hooks=[]): if await_ci: commands.append( - IssueCommentCommand.approve_await(approver, approved_sha)) + IssueCommentCommand.approve_await(approver, approved_sha)) # noqa else: commands.append( IssueCommentCommand.approve(approver, approved_sha)) diff --git a/homu/tests/test_parse_issue_comment.py b/homu/tests/test_parse_issue_comment.py index 76e1784..d636f53 100644 --- a/homu/tests/test_parse_issue_comment.py +++ b/homu/tests/test_parse_issue_comment.py @@ -52,6 +52,7 @@ def test_r_plus_with_sha(): assert command.actor == 'jack' assert command.commit == other_commit + def test_r_plus_await(): """ @bors r+ await @@ -128,7 +129,7 @@ def test_r_equals_await(): assert command.actor == 'jill' -def test_r_equals_at_user(): +def test_r_equals_at_user_await(): """ @bors r=@jill await """