Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
TrishGillett committed Aug 5, 2024
1 parent 7bbc6ed commit 78918b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tap_github/tests/test_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78918b9

Please sign in to comment.