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

Method setUpClass

tests/tests_server.py:34–43  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

32 '''
33 @classmethod
34 def setUpClass(cls):
35 cls.srv = Server()
36 cls.srv.set_endpoint('opc.tcp://127.0.0.1:{0:d}'.format(port_num))
37 add_server_methods(cls.srv)
38 cls.srv.start()
39 cls.opc = cls.srv
40 cls.discovery = Server()
41 cls.discovery.set_application_uri("urn:freeopcua:python:discovery")
42 cls.discovery.set_endpoint('opc.tcp://127.0.0.1:{0:d}'.format(port_discovery))
43 cls.discovery.start()
44
45 @classmethod
46 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 5

ServerClass · 0.90
add_server_methodsFunction · 0.90
set_endpointMethod · 0.80
set_application_uriMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected