SIENTIAPDE-1973
Some checks failed
Quality gate / quality-gate (push) Has been cancelled

SIENTIAPDE-1973: Refactor unit tests for improved readability, primarily by splitting chained assertions into individual statements and minor fixture import adjustments.
This commit is contained in:
2026-10-29 13:33:25 -03:00
parent ecb055eefb
commit 97bf2fd748
5 changed files with 16 additions and 9 deletions

View File

@@ -1,13 +1,13 @@
from unittest.mock import AsyncMock, MagicMock
from pytest import fixture
import pytest
@fixture
@pytest.fixture
def reader_double():
"""Factory of OPC reader doubles holding subscriptions for the given slots.
Like the real readers (ServerReader, OpcManager), `subscriptions` is keyed by slot
Like the real ServerReader, `subscriptions` is keyed by slot
and `unsubscribe` drops the slot from it.
"""