Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy committed Nov 28, 2024
1 parent b835d18 commit 44b1c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions reusable_workflows/tests/test_cla_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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 = []
Expand Down
4 changes: 1 addition & 3 deletions reusable_workflows/tests/test_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44b1c8a

Please sign in to comment.