Skip to content

Commit 6fb0072

Browse files
yangpeirenoroulet
authored andcommitted
renamed some modules
1 parent 9421723 commit 6fb0072

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

examples/server_create_custom_structures.py renamed to examples/server-create-custom-structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from opcua import ua, Server
2-
from opcua.common.structure_extension import DataTypeDictionaryBuilder, get_ua_class
2+
from opcua.common.type_dictionary_buider import DataTypeDictionaryBuilder, get_ua_class
33
from IPython import embed
44

55

tests/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from tests_history import TestHistory, TestHistorySQL, TestHistoryLimits, TestHistorySQLLimits
1414
from tests_crypto_connect import TestCryptoConnect
1515
from tests_uaerrors import TestUaErrors
16+
from tests_custom_structures import TypeDictionaryBuilderTest
1617

1718

1819
if __name__ == '__main__':
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
import logging
33
import xml.etree.ElementTree as Et
44
from opcua import ua, Server
5-
import opcua.common.structure_extension
6-
from opcua.common.structure_extension import OPCTypeDictionaryBuilder, DataTypeDictionaryBuilder
7-
from opcua.common.structure_extension import get_ua_class, StructNode
5+
import opcua.common.type_dictionary_buider
6+
from opcua.common.type_dictionary_buider import OPCTypeDictionaryBuilder, DataTypeDictionaryBuilder
7+
from opcua.common.type_dictionary_buider import get_ua_class, StructNode
88

99
port_num = 48540
1010
idx_name = 'http://test.freeopcua.github.io'
1111

1212

1313
def to_camel_case(name):
14-
func = getattr(opcua.common.structure_extension, '_to_camel_case')
14+
func = getattr(opcua.common.type_dictionary_buider, '_to_camel_case')
1515
return func(name)
1616

1717

1818
def reference_generator(source_id, target_id, reference_type, is_forward=True):
19-
func = getattr(opcua.common.structure_extension, '_reference_generator')
19+
func = getattr(opcua.common.type_dictionary_buider, '_reference_generator')
2020
return func(source_id, target_id, reference_type, is_forward)
2121

2222

@@ -31,7 +31,7 @@ def set_up_test_tree():
3131
return test_etree
3232

3333

34-
class OPCTypeDictionaryBuilderTest(unittest.TestCase):
34+
class TypeDictionaryBuilderTest(unittest.TestCase):
3535

3636
@classmethod
3737
def setUpClass(cls):

0 commit comments

Comments
 (0)