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:
vitor-aignosi
2025-07-08 16:24:11 -03:00
parent 8a5989dddc
commit 1a96ada0e0
2 changed files with 29 additions and 19 deletions

View File

@@ -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")