From 44b1c8a738d6db9dbd6923bb2aa57e556d49e46f Mon Sep 17 00:00:00 2001 From: Carly Gundy Date: Thu, 28 Nov 2024 16:44:34 +0100 Subject: [PATCH] linting --- reusable_workflows/tests/test_cla_pr.py | 2 ++ reusable_workflows/tests/test_membership.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reusable_workflows/tests/test_cla_pr.py b/reusable_workflows/tests/test_cla_pr.py index 2344eda..a6a0529 100644 --- a/reusable_workflows/tests/test_cla_pr.py +++ b/reusable_workflows/tests/test_cla_pr.py @@ -172,6 +172,7 @@ def test_handle_cla_signed_with_pending_label(): issue.remove_label.assert_called_once() issue.add_labels.assert_called_once() + def test_handle_cla_signed_with_new_pending_label(): issue = mock.Mock() label = mock.Mock() @@ -186,6 +187,7 @@ def test_handle_cla_signed_with_new_pending_label(): issue.remove_label.assert_called_once() issue.add_labels.assert_called_once() + def test_handle_cla_signed_with_no_label(capfd): issue = mock.Mock() issue.original_labels = [] diff --git a/reusable_workflows/tests/test_membership.py b/reusable_workflows/tests/test_membership.py index 1345132..12781b3 100644 --- a/reusable_workflows/tests/test_membership.py +++ b/reusable_workflows/tests/test_membership.py @@ -90,9 +90,7 @@ def test_end_to_end_api_fails(os_system, github_login_mock): os_system.assert_not_called() -@mock.patch.dict( - os.environ, {"GH_ORG": "my_org", "GH_TOKEN": "", "USER": "username"} -) +@mock.patch.dict(os.environ, {"GH_ORG": "my_org", "GH_TOKEN": "", "USER": "username"}) @mock.patch("github3.login") def test_github_token_not_passed_in(github_login_mock): github_login_mock.return_value = None