|
10 | 10 | # pylint: disable=too-many-public-methods,unused-argument,protected-access |
11 | 11 |
|
12 | 12 |
|
13 | | -class MockBridgeCore: # pylint: disable=too-few-public-methods |
| 13 | +class MockBridgeCore: # pylint: disable=too-few-public-methods |
14 | 14 | """Mock BridgeCore for testing.""" |
15 | 15 |
|
16 | 16 | def __init__(self, config_manager, adapters): |
@@ -122,7 +122,7 @@ def create_orchestrator_mock(self): |
122 | 122 | mock_protocol_config = self.mock_protocol_config |
123 | 123 | adapter_classes = self.adapter_classes |
124 | 124 |
|
125 | | - class MockBridgeOrchestrator: # pylint: disable=too-few-public-methods,too-many-instance-attributes |
| 125 | + class MockBridgeOrchestrator: # pylint: disable=too-few-public-methods,too-many-instance-attributes |
126 | 126 | """Mock BridgeOrchestrator with simplified setup and lifecycle.""" |
127 | 127 |
|
128 | 128 | def __init__(self, config_path=None): |
@@ -160,7 +160,8 @@ def setup_interfaces(self): |
160 | 160 | MockSignalManager.connect_all_signals() |
161 | 161 |
|
162 | 162 | except Exception as exc: |
163 | | - raise RuntimeError(f"Error setting up interfaces: {exc}") from exc |
| 163 | + raise RuntimeError( |
| 164 | + f"Error setting up interfaces: {exc}") from exc |
164 | 165 |
|
165 | 166 | def start(self): |
166 | 167 | """Start all adapters and mark running state.""" |
@@ -245,7 +246,8 @@ def test_setup_interfaces_raises_on_adapter_failure(self): |
245 | 246 | orchestrator = BridgeOrchestrator(self.config_path) |
246 | 247 |
|
247 | 248 | def failing_adapter(config_manager): |
248 | | - raise Exception("Adapter initialization failed") # pylint: disable=broad-exception-raised |
| 249 | + raise Exception( |
| 250 | + "Adapter initialization failed") # pylint: disable=broad-exception-raised |
249 | 251 |
|
250 | 252 | orchestrator.adapter_classes["mqtt"] = failing_adapter |
251 | 253 |
|
|
0 commit comments