From 38d889ef9c9d017bfefe19173f4722111a44e316 Mon Sep 17 00:00:00 2001 From: asafmahlev Date: Tue, 23 Jan 2024 10:03:08 +0200 Subject: [PATCH] Fix for 3.7 --- azure-kusto-data/tests/test_kusto_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-kusto-data/tests/test_kusto_client.py b/azure-kusto-data/tests/test_kusto_client.py index 98f62eb..4334d71 100644 --- a/azure-kusto-data/tests/test_kusto_client.py +++ b/azure-kusto-data/tests/test_kusto_client.py @@ -35,7 +35,7 @@ class TestKustoClient(KustoClientTestsMixin): with KustoClient(self.HOST) as client: response = method.__call__(client, "PythonTest", "Deft") self._assert_sanity_query_response(response) - self._assert_client_request_id(mock_post.call_args.kwargs) + self._assert_client_request_id(mock_post.call_args[:-1]) @patch("requests.Session.post", side_effect=mocked_requests_post) def test_raise_network(self, mock_post, method): @@ -170,7 +170,7 @@ class TestKustoClient(KustoClientTestsMixin): properties.client_request_id = request_id response = method.__call__(client, "PythonTest", "Deft", properties=properties) self._assert_sanity_query_response(response) - self._assert_client_request_id(mock_post.call_args.kwargs, value=request_id) + self._assert_client_request_id(mock_post.call_args[:-1], value=request_id) @patch("requests.get", side_effect=mocked_requests_post) def test_proxy_token_providers(self, mock_get, proxy_kcsb):