Skip to content

Commit

Permalink
🚚 release (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Fiedorowicz <[email protected]>
Co-authored-by: Arthur Hanson <[email protected]>
  • Loading branch information
mfiedorowicz and arthanson authored Dec 13, 2024
1 parent f4ae8a4 commit 30b480c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion netboxlabs/diode/sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from netboxlabs.diode.sdk.diode.v1 import ingester_pb2, ingester_pb2_grpc
from netboxlabs.diode.sdk.exceptions import DiodeClientError, DiodeConfigError
from netboxlabs.diode.sdk.ingester import Entity
from netboxlabs.diode.sdk.version import version_semver

_DIODE_API_KEY_ENVVAR_NAME = "DIODE_API_KEY"
_DIODE_SDK_LOG_LEVEL_ENVVAR_NAME = "DIODE_SDK_LOG_LEVEL"
Expand Down Expand Up @@ -69,7 +70,7 @@ class DiodeClient:
"""Diode Client."""

_name = "diode-sdk-python"
_version = "0.0.1"
_version = version_semver()
_app_name = None
_app_version = None
_channel = None
Expand Down
5 changes: 3 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
parse_target,
)
from netboxlabs.diode.sdk.exceptions import DiodeClientError, DiodeConfigError
from netboxlabs.diode.sdk.version import version_semver


def test_init():
Expand All @@ -31,7 +32,7 @@ def test_init():
)
assert config.target == "localhost:8081"
assert config.name == "diode-sdk-python"
assert config.version == "0.0.1"
assert config.version == version_semver()
assert config.app_name == "my-producer"
assert config.app_version == "0.0.1"
assert config.tls_verify is False
Expand Down Expand Up @@ -370,7 +371,7 @@ def test_client_properties_return_expected_values():
api_key="abcde",
)
assert client.name == "diode-sdk-python"
assert client.version == "0.0.1"
assert client.version == version_semver()
assert client.target == "localhost:8081"
assert client.path == ""
assert client.tls_verify is False
Expand Down

0 comments on commit 30b480c

Please sign in to comment.