1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00

ruff format

This commit is contained in:
Olivier
2025-09-20 10:03:23 +02:00
parent 1d787c90e5
commit bf938996a6
2 changed files with 6 additions and 6 deletions

View File

@@ -64,9 +64,7 @@ class PubSubInformationModel:
n = await self._node.get_child(path)
await n.write_value(DataValue(value))
async def get_node_value(
self, path: Union[str, QualifiedName, List[str], List[QualifiedName]]
) -> Variant | None:
async def get_node_value(self, path: Union[str, QualifiedName, List[str], List[QualifiedName]]) -> Variant | None:
"""
Get value of child node value returns `None` if no information model is used
"""

View File

@@ -200,9 +200,11 @@ async def test_basic256_encrypt_success(srv_crypto_all_certs):
async def test_basic256_encrypt_use_certificate_bytes(srv_crypto_all_certs):
clt = Client(uri_crypto)
_, cert = srv_crypto_all_certs
with open(cert, "rb") as server_cert, open(f"{EXAMPLE_PATH / 'certificate-example.der'}", "rb") as user_cert, open(
f"{EXAMPLE_PATH / 'private-key-example.pem'}", "rb"
) as user_key:
with (
open(cert, "rb") as server_cert,
open(f"{EXAMPLE_PATH / 'certificate-example.der'}", "rb") as user_cert,
open(f"{EXAMPLE_PATH / 'private-key-example.pem'}", "rb") as user_key,
):
await clt.set_security(
security_policies.SecurityPolicyBasic256Sha256,
user_cert.read(),