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

Method create_var

tests/tests_history.py:39–46  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

37
38 @classmethod
39 def create_var(cls):
40 o = cls.srv.get_objects_node()
41 cls.values = [i for i in range(20)]
42 cls.var = o.add_variable(3, "history_var", 0)
43 cls.srv.historize_node_data_change(cls.var, period=None, count=0)
44 for i in cls.values:
45 cls.var.set_value(i)
46 time.sleep(1)
47
48 # no start and no end is not defined by spec, return reverse order
49 def test_history_var_read_one(self):

Callers 2

setUpClassMethod · 0.80
setUpClassMethod · 0.80

Calls 4

set_valueMethod · 0.80
get_objects_nodeMethod · 0.45
add_variableMethod · 0.45

Tested by

no test coverage detected