refactor(opc): Rename async close method to aclose

Renamed the OPC.close asynchronous method to OPC.aclose to align with common Python conventions for asynchronous context managers and methods, improving clarity. All call sites and tests have been updated accordingly.
This commit is contained in:
Bruno Domingues
2026-08-04 12:01:06 -03:00
parent 310ceea0d8
commit acd925cf2a
3 changed files with 3 additions and 3 deletions

View File

@@ -734,5 +734,5 @@ async def test_validate_server(opc):
@mark.asyncio
async def test_close(opc):
opc.opc_repository['server1'].disconnect = AsyncMock(return_value=True)
await opc.close()
await opc.aclose()
opc.opc_repository['server1'].disconnect.assert_called_once()