MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / wrapper

Function wrapper

test_external_server.py:47–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45
46def connect(func):
47 def wrapper(self):
48 try:
49 client = Client(URL)
50 client.connect()
51 func(self, client)
52 finally:
53 client.disconnect()
54 return wrapper
55
56

Callers

nothing calls this directly

Calls 4

connectMethod · 0.95
disconnectMethod · 0.95
ClientClass · 0.90
funcFunction · 0.50

Tested by

no test coverage detected