SIENTIAPDE-1314
Refactor OPC Test for Output Management - Added spacing for improved readability in the test_manage_output_tags_failed and test_manage_output_tags_do_nothing functions. - Reformatted the parameters in the call to manage_output_tags for better clarity and organization.
This commit is contained in:
@@ -336,6 +336,7 @@ async def test_manage_output_tags_failed(opc, side_effect):
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
@mark.asyncio
|
||||
async def test_manage_output_tags_do_nothing(opc):
|
||||
opc.write_data = AsyncMock(return_value=0.1)
|
||||
@@ -344,12 +345,16 @@ async def test_manage_output_tags_do_nothing(opc):
|
||||
'_invalid_key': {'tag1': {'data_type': 'float'}},
|
||||
}
|
||||
output_data, opc_metrics = await opc.manage_output_tags(
|
||||
server_id='server1', config=config, data=data, metadata=metadata['metadata'],
|
||||
server_id='server1',
|
||||
config=config,
|
||||
data=data,
|
||||
metadata=metadata['metadata'],
|
||||
)
|
||||
assert output_data is True
|
||||
assert opc_metrics == {}
|
||||
opc.write_data.assert_not_called()
|
||||
|
||||
|
||||
@mark.asyncio
|
||||
@patch('laborious.activities.opc.DataFrame')
|
||||
async def test_write_opc_data_success(mock_dataframe, opc):
|
||||
|
||||
Reference in New Issue
Block a user