From 740ee476587d48bf9d6134e98fb4528366a977f3 Mon Sep 17 00:00:00 2001 From: Harsh Gupta <42064744+Harshg999@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:06:30 +0530 Subject: [PATCH] remove unused imports --- desktop/core/src/desktop/lib/sdxaas/knox_jwt_test.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/desktop/core/src/desktop/lib/sdxaas/knox_jwt_test.py b/desktop/core/src/desktop/lib/sdxaas/knox_jwt_test.py index b0c7bcf326e..60ecfc7e9a5 100644 --- a/desktop/core/src/desktop/lib/sdxaas/knox_jwt_test.py +++ b/desktop/core/src/desktop/lib/sdxaas/knox_jwt_test.py @@ -14,20 +14,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys -import unittest - +from unittest.mock import patch, Mock from nose.tools import assert_equal, assert_raises from desktop.conf import SDXAAS from desktop.lib.sdxaas.knox_jwt import handle_knox_ha, fetch_jwt from desktop.lib.exceptions_renderable import PopupException -if sys.version_info[0] > 2: - from unittest.mock import patch, Mock -else: - from mock import patch, Mock - def test_handle_knox_ha(): with patch('desktop.lib.sdxaas.knox_jwt.requests_kerberos.HTTPKerberosAuth') as HTTPKerberosAuth: