From 78918b935b80ddcbcd18d850d51f530a5ebd5f6b Mon Sep 17 00:00:00 2001 From: Trish Gillett-Kawamoto Date: Sun, 4 Aug 2024 21:26:23 -0600 Subject: [PATCH] fix test --- tap_github/tests/test_authenticator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tap_github/tests/test_authenticator.py b/tap_github/tests/test_authenticator.py index 998f7ae1..38a75eb4 100644 --- a/tap_github/tests/test_authenticator.py +++ b/tap_github/tests/test_authenticator.py @@ -179,7 +179,8 @@ def mock_stream(): class TestGitHubTokenAuthenticator: def test_prepare_tokens_returns_empty_if_none_found(self, mock_stream): - with patch("os.environ", {"GITHUB_TLJKJFDS": "gt1"}), \ + with patch.object(GitHubTokenAuthenticator, "get_env", + return_value={"GITHUB_TLJKJFDS": "gt1"}), \ patch.object(PersonalTokenManager, "is_valid_token", return_value=True): auth = GitHubTokenAuthenticator(stream=mock_stream)