test_base_azure_1.py 448 B

123456789
  1. def test_get_conn_with_key_path(self, mock_connection, mock_get_client_from_auth_file):
  2. mock_sdk_client = Mock()
  3. auth_sdk_client = AzureBaseHook(mock_sdk_client).get_conn()
  4. mock_get_client_from_auth_file.assert_called_once_with(
  5. client_class=mock_sdk_client, auth_path=mock_connection.return_value.extra_dejson['key_path']
  6. )
  7. assert auth_sdk_client == mock_get_client_from_auth_file.return_value