SIENTIAPDE-1646
Refactor OPC and OpcRepository classes to remove logger dependency and streamline logging calls - Removed logger attribute from OPC and OpcRepository classes, replacing direct logger calls with class methods for logging. - Updated write_data method signatures to eliminate logger parameter, simplifying the interface. - Adjusted related tests to reflect changes in method signatures and logging behavior.
This commit is contained in:
@@ -205,7 +205,7 @@ def test_write_data_success(opc, tag, data_type, data):
|
||||
)
|
||||
assert result == 0.1
|
||||
opc.opc_repository['server1'].write_data.assert_called_once_with(
|
||||
tag, data, data_type, opc.logger, metadata
|
||||
tag, data, data_type, metadata
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user