SIENTIAPDE-1110
Refactor test assertions for improved readability and consistency - Updated assertions in test cases for DataManager and OpcManager to enhance readability by formatting long lines. - Ensured that the expected behavior of metrics logging and message publishing is clearly defined in the tests.
This commit is contained in:
@@ -234,9 +234,7 @@ def test_publish_no_kafka(data_manager):
|
||||
|
||||
data_manager.publish(topic, data)
|
||||
|
||||
data_manager.logger.debug.assert_any_call(
|
||||
f"Skipping message to topic {topic}: {data}"
|
||||
)
|
||||
data_manager.kafka_producer.send.assert_not_called()
|
||||
|
||||
|
||||
@patch("ingestor.managers.data_manager.traceback")
|
||||
|
||||
Reference in New Issue
Block a user