From 753b2f3bb22858e5a0a85ecc3badab5e3006acdd Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Tue, 5 Nov 2024 09:38:37 -0800 Subject: [PATCH] fix: use proper prefix for function calls Signed-off-by: Zack Koppert --- test_auth.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test_auth.py b/test_auth.py index a9d6c66..9337abc 100644 --- a/test_auth.py +++ b/test_auth.py @@ -3,8 +3,8 @@ import unittest from unittest.mock import MagicMock, patch -import requests import auth +import requests class TestAuth(unittest.TestCase): @@ -102,7 +102,7 @@ def test_get_github_app_installation_token_request_failure(self, mock_post): mock_post.side_effect = requests.exceptions.RequestException("Request failed") # Call the function with test data - result = get_github_app_installation_token( + result = auth.get_github_app_installation_token( ghe="https://api.github.com", gh_app_id=12345, gh_app_private_key_bytes=b"private_key", @@ -120,7 +120,7 @@ def test_auth_to_github_invalid_credentials(self, mock_login): """ mock_login.return_value = None with self.assertRaises(ValueError) as context_manager: - auth_to_github("not_a_valid_token", "", "", b"", "", False) + auth.auth_to_github("not_a_valid_token", "", "", b"", "", False) the_exception = context_manager.exception self.assertEqual( @@ -128,5 +128,6 @@ def test_auth_to_github_invalid_credentials(self, mock_login): "Unable to authenticate to GitHub", ) + if __name__ == "__main__": unittest.main()