diff --git a/pyzeebe/grpc_internals/channel_options.py b/pyzeebe/grpc_internals/channel_options.py index 006330f9..9e20d256 100644 --- a/pyzeebe/grpc_internals/channel_options.py +++ b/pyzeebe/grpc_internals/channel_options.py @@ -7,7 +7,7 @@ https://docs.camunda.io/docs/product-manuals/zeebe/deployment-guide/operations/setting-up-a-cluster/#keep-alive-intervals """ -from typing import Dict, Any, Tuple +from typing import Any, Dict, Tuple GRPC_CHANNEL_OPTIONS = { "grpc.keepalive_time_ms": 45_000 diff --git a/pyzeebe/grpc_internals/grpc_channel_utils.py b/pyzeebe/grpc_internals/grpc_channel_utils.py index 12767e91..dfd6978e 100644 --- a/pyzeebe/grpc_internals/grpc_channel_utils.py +++ b/pyzeebe/grpc_internals/grpc_channel_utils.py @@ -1,11 +1,12 @@ import os -from typing import Optional, Dict, Any +from typing import Any, Dict, Optional import grpc from pyzeebe.credentials.base_credentials import BaseCredentials from pyzeebe.grpc_internals.channel_options import get_channel_options + def create_connection_uri( hostname: str = None, port: int = None, diff --git a/tests/unit/grpc_internals/channel_options_test.py b/tests/unit/grpc_internals/channel_options_test.py index 56ba08e9..71a967fd 100644 --- a/tests/unit/grpc_internals/channel_options_test.py +++ b/tests/unit/grpc_internals/channel_options_test.py @@ -1,12 +1,11 @@ from copy import deepcopy +from unittest.mock import Mock, patch import pytest -from unittest.mock import patch, Mock - -from pyzeebe.grpc_internals.zeebe_adapter_base import ZeebeAdapterBase import pyzeebe.grpc_internals.channel_options from pyzeebe.grpc_internals.channel_options import get_channel_options +from pyzeebe.grpc_internals.zeebe_adapter_base import ZeebeAdapterBase @pytest.fixture