Skip to content

Commit

Permalink
style: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoppenheimer committed Dec 20, 2024
1 parent 0152220 commit f94d43a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 36 deletions.
64 changes: 31 additions & 33 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
anyio==4.5.2 ; python_version >= "3.8" and python_version < "4.0"
attrs==24.2.0 ; python_version >= "3.8" and python_version < "4.0"
certifi==2024.8.30 ; python_version >= "3.8" and python_version < "4.0"
cffi==1.17.1 ; python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "PyPy"
charset-normalizer==3.4.0 ; python_version >= "3.8" and python_version < "4.0"
cosl==0.0.24 ; python_version >= "3.8" and python_version < "4.0"
cryptography==43.0.3 ; python_version >= "3.8" and python_version < "4.0"
exceptiongroup==1.2.2 ; python_version >= "3.8" and python_version < "3.11"
h11==0.14.0 ; python_version >= "3.8" and python_version < "4.0"
httpcore==1.0.7 ; python_version >= "3.8" and python_version < "4.0"
httpx==0.27.2 ; python_version >= "3.8" and python_version < "4.0"
idna==3.10 ; python_version >= "3.8" and python_version < "4.0"
importlib-resources==6.4.5 ; python_version >= "3.8" and python_version < "3.9"
jsonschema-specifications==2023.12.1 ; python_version >= "3.8" and python_version < "4.0"
jsonschema==4.23.0 ; python_version >= "3.8" and python_version < "4.0"
kazoo==2.10.0 ; python_version >= "3.8" and python_version < "4.0"
lightkube-models==1.31.1.8 ; python_version >= "3.8" and python_version < "4.0"
lightkube==0.15.0 ; python_version >= "3.8" and python_version < "4.0"
ops==2.17.0 ; python_version >= "3.8" and python_version < "4.0"
pkgutil-resolve-name==1.3.10 ; python_version >= "3.8" and python_version < "3.9"
pure-sasl==0.6.2 ; python_version >= "3.8" and python_version < "4.0"
pycparser==2.22 ; python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "PyPy"
pydantic==1.10.19 ; python_version >= "3.8" and python_version < "4.0"
pyyaml==6.0.2 ; python_version >= "3.8" and python_version < "4.0"
referencing==0.35.1 ; python_version >= "3.8" and python_version < "4.0"
requests==2.32.3 ; python_version >= "3.8" and python_version < "4.0"
rpds-py==0.20.1 ; python_version >= "3.8" and python_version < "4.0"
sniffio==1.3.1 ; python_version >= "3.8" and python_version < "4.0"
tenacity==9.0.0 ; python_version >= "3.8" and python_version < "4.0"
typing-extensions==4.12.2 ; python_version >= "3.8" and python_version < "4.0"
urllib3==2.2.3 ; python_version >= "3.8" and python_version < "4.0"
websocket-client==1.8.0 ; python_version >= "3.8" and python_version < "4.0"
zipp==3.20.2 ; python_version >= "3.8" and python_version < "3.9"
anyio==4.5.2 ; python_version >= "3.10" and python_version < "4.0"
attrs==24.2.0 ; python_version >= "3.10" and python_version < "4.0"
certifi==2024.8.30 ; python_version >= "3.10" and python_version < "4.0"
cffi==1.17.1 ; python_version >= "3.10" and python_version < "4.0" and platform_python_implementation != "PyPy"
charset-normalizer==3.4.0 ; python_version >= "3.10" and python_version < "4.0"
cosl==0.0.24 ; python_version >= "3.10" and python_version < "4.0"
cryptography==43.0.3 ; python_version >= "3.10" and python_version < "4.0"
exceptiongroup==1.2.2 ; python_version >= "3.10" and python_version < "3.11"
h11==0.14.0 ; python_version >= "3.10" and python_version < "4.0"
httpcore==1.0.7 ; python_version >= "3.10" and python_version < "4.0"
httpx==0.27.2 ; python_version >= "3.10" and python_version < "4.0"
idna==3.10 ; python_version >= "3.10" and python_version < "4.0"
jsonschema-specifications==2023.12.1 ; python_version >= "3.10" and python_version < "4.0"
jsonschema==4.23.0 ; python_version >= "3.10" and python_version < "4.0"
kazoo==2.10.0 ; python_version >= "3.10" and python_version < "4.0"
lightkube-models==1.31.1.8 ; python_version >= "3.10" and python_version < "4.0"
lightkube==0.15.0 ; python_version >= "3.10" and python_version < "4.0"
ops==2.17.0 ; python_version >= "3.10" and python_version < "4.0"
pure-sasl==0.6.2 ; python_version >= "3.10" and python_version < "4.0"
pycparser==2.22 ; python_version >= "3.10" and python_version < "4.0" and platform_python_implementation != "PyPy"
pydantic==1.10.19 ; python_version >= "3.10" and python_version < "4.0"
pyyaml==6.0.2 ; python_version >= "3.10" and python_version < "4.0"
referencing==0.35.1 ; python_version >= "3.10" and python_version < "4.0"
requests==2.32.3 ; python_version >= "3.10" and python_version < "4.0"
rpds-py==0.20.1 ; python_version >= "3.10" and python_version < "4.0"
sniffio==1.3.1 ; python_version >= "3.10" and python_version < "4.0"
tenacity==9.0.0 ; python_version >= "3.10" and python_version < "4.0"
trustme==1.2.0 ; python_version >= "3.10" and python_version < "4.0"
typing-extensions==4.12.2 ; python_version >= "3.10" and python_version < "4.0"
urllib3==2.2.3 ; python_version >= "3.10" and python_version < "4.0"
websocket-client==1.8.0 ; python_version >= "3.10" and python_version < "4.0"
2 changes: 1 addition & 1 deletion src/events/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _trusted_relation_changed(self, event: RelationChangedEvent) -> None:
event.defer()
return

relation_data = _load_relation_data(dict(event.relation.data[event.relation.app]))
relation_data = _load_relation_data(event.relation.data[event.relation.app])
provider_certificates = relation_data.get("certificates", [])

if not provider_certificates:
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# See LICENSE file for licensing details.

import dataclasses
import trustme
from trustme import CA
import json
import logging
import socket
Expand All @@ -13,8 +11,10 @@
from unittest.mock import PropertyMock, patch

import pytest
import trustme
import yaml
from ops.testing import Container, Context, PeerRelation, Relation, State
from trustme import CA

from charm import KafkaCharm
from literals import (
Expand All @@ -34,6 +34,7 @@
ACTIONS = yaml.safe_load(Path("./actions.yaml").read_text())
METADATA = yaml.safe_load(Path("./metadata.yaml").read_text())


@pytest.fixture()
def ca() -> CA:
return trustme.CA()
Expand Down

0 comments on commit f94d43a

Please sign in to comment.