From e6ef3fb140f2664cac6aebe3837665621f85df1b Mon Sep 17 00:00:00 2001 From: Carly Gundy <47304080+cgundy@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:03:28 +0200 Subject: [PATCH] Update test_membership.py --- reusable_workflows/tests/test_membership.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reusable_workflows/tests/test_membership.py b/reusable_workflows/tests/test_membership.py index e6d68c4..1345132 100644 --- a/reusable_workflows/tests/test_membership.py +++ b/reusable_workflows/tests/test_membership.py @@ -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") @@ -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") @@ -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") @@ -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):