mirror of
				https://github.com/FreeOpcUa/opcua-asyncio
				synced 2025-10-29 17:07:18 +08:00 
			
		
		
		
	ruff format
This commit is contained in:
		| @@ -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 | ||||
|         """ | ||||
|   | ||||
| @@ -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(), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Olivier
					Olivier