SIENTIAPDE-1312

Enhance type hinting in test_orchestrator_functions.py by specifying the type of slot_config as a dictionary for improved code clarity.
This commit is contained in:
vitor-aignosi
2025-10-20 10:27:47 -03:00
parent b095335cdc
commit 65dc76209b

View File

@@ -251,7 +251,7 @@ def test_gather_read_tags():
def test_build_tag_config(): def test_build_tag_config():
tag = {'server_id': '1', 'server_name': 'test_server_name', 'tag_address': 'test_tag_address'} tag = {'server_id': '1', 'server_name': 'test_server_name', 'tag_address': 'test_tag_address'}
opc_servers = {'1': {'server_name': 'test_server_name', 'url': 'test_url', 'uri': 'test_uri'}} opc_servers = {'1': {'server_name': 'test_server_name', 'url': 'test_url', 'uri': 'test_uri'}}
slot_config = {'1': {}} slot_config: dict = {'1': {}}
i = 1 i = 1
result = build_tag_config(tag, slot_config, opc_servers, i) result = build_tag_config(tag, slot_config, opc_servers, i)
expected = { expected = {