From 9ec95d7b8dcd247d69a2a3d1bfe27cce6af5da80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Zamora=20Mart=C3=ADnez?= <76525382+zmraul@users.noreply.github.com> Date: Wed, 15 Nov 2023 10:41:27 +0100 Subject: [PATCH] chore: Fix poetry (#155) --- metadata.yaml | 1 + pyproject.toml | 2 +- tests/unit/test_structured_config.py | 2 +- tests/unit/test_utils.py | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/metadata.yaml b/metadata.yaml index 791b2e5d..e0c4e4a1 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -8,6 +8,7 @@ issues: https://github.com/canonical/kafka-operator/issues/new docs: https://discourse.charmhub.io/t/charmed-kafka-documentation/10288 maintainers: - Marc Oppenheimer + - Raul Zamora name: kafka series: - jammy diff --git a/pyproject.toml b/pyproject.toml index 828893a0..191daed0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ profile = "black" name = "kafka-operator" version = "1.0" description = "kafka-operator" -authors = [""] +authors = [] [tool.poetry.dependencies] python = ">=3.8" diff --git a/tests/unit/test_structured_config.py b/tests/unit/test_structured_config.py index 6e606787..371a9207 100644 --- a/tests/unit/test_structured_config.py +++ b/tests/unit/test_structured_config.py @@ -45,7 +45,7 @@ def test_config_parsing_parameters_integer_values(harness) -> None: def check_valid_values(_harness, field: str, accepted_values: list, is_long_field=False) -> None: - """Check the correcteness of the passed values for a field.""" + """Check the correctness of the passed values for a field.""" for value in accepted_values: _harness.update_config({field: value}) assert _harness.charm.config[field] == value if not is_long_field else int(value) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 92a2d2d2..0c51404f 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -20,7 +20,7 @@ def test_map_env_populated(): assert sorted(env.keys()) == sorted(["KAFKA_OPTS", "SERVER_JVMFLAGS"]) for value in env.values(): - assert type(value) == str + assert isinstance(value, str) # checks handles multiple equals signs in value assert len(value.split()) == 3 @@ -38,7 +38,7 @@ def test_map_env_empty_item(): assert sorted(env.keys()) == sorted(["PATH"]) for value in env.values(): - assert type(value) == str + assert isinstance(value, str) def test_get_env_empty():