Skip to content

Commit

Permalink
Update test_membership.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy authored Oct 13, 2023
1 parent 2ea3f77 commit e6ef3fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reusable_workflows/tests/test_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_not_member():


@mock.patch.dict(
os.environ, {"GH_ORG": "my_org", "GITHUB_TOKEN": "secret", "USER": "username"}
os.environ, {"GH_ORG": "my_org", "GH_TOKEN": "secret", "USER": "username"}
)
@mock.patch("github3.login")
@mock.patch("os.system")
Expand All @@ -52,7 +52,7 @@ def test_end_to_end_is_member(os_system, github_login_mock, capfd):


@mock.patch.dict(
os.environ, {"GH_ORG": "my_org", "GITHUB_TOKEN": "secret", "USER": "username"}
os.environ, {"GH_ORG": "my_org", "GH_TOKEN": "secret", "USER": "username"}
)
@mock.patch("github3.login")
@mock.patch("os.system")
Expand All @@ -74,7 +74,7 @@ def test_end_to_end_is_not_member(os_system, github_login_mock, capfd):


@mock.patch.dict(
os.environ, {"GH_ORG": "my_org", "GITHUB_TOKEN": "secret", "USER": "username"}
os.environ, {"GH_ORG": "my_org", "GH_TOKEN": "secret", "USER": "username"}
)
@mock.patch("github3.login")
@mock.patch("os.system")
Expand All @@ -91,7 +91,7 @@ def test_end_to_end_api_fails(os_system, github_login_mock):


@mock.patch.dict(
os.environ, {"GH_ORG": "my_org", "GITHUB_TOKEN": "", "USER": "username"}
os.environ, {"GH_ORG": "my_org", "GH_TOKEN": "", "USER": "username"}
)
@mock.patch("github3.login")
def test_github_token_not_passed_in(github_login_mock):
Expand Down

0 comments on commit e6ef3fb

Please sign in to comment.