SIENTIAPDE-1174
Reset mock metrics in test_init_metrics_calls_correct_metric_methods for improved test isolation in test_opc_manager.py.
This commit is contained in:
@@ -544,6 +544,9 @@ def test_check_opc_listenning_error_notification_and_retry(metrics, opc_manager)
|
||||
|
||||
@patch("ingestor.managers.opc_manager.metrics")
|
||||
def test_init_metrics_calls_correct_metric_methods(mock_metrics):
|
||||
mock_metrics.OPC_CONNECTION_STATUS.reset_mock()
|
||||
mock_metrics.OPC_TAGS_SUBSCRIBED.reset_mock()
|
||||
|
||||
opc_manager = OpcManager(
|
||||
name="TestInitConnector",
|
||||
url="opc.tcp://init.test:4840",
|
||||
|
||||
Reference in New Issue
Block a user