Skip to content

Commit

Permalink
chore: Fix poetry (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmraul authored Nov 15, 2023
1 parent 07cf4a8 commit 9ec95d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
- Raul Zamora <[email protected]>
name: kafka
series:
- jammy
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ profile = "black"
name = "kafka-operator"
version = "1.0"
description = "kafka-operator"
authors = [""]
authors = []

[tool.poetry.dependencies]
python = ">=3.8"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_structured_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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():
Expand Down

0 comments on commit 9ec95d7

Please sign in to comment.