Mercurial > libervia-backend
comparison tests/unit/conftest.py @ 3989:f5ba7594cced
core (main): log Exception when `bridge_pi` fails
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 24 Nov 2022 12:25:04 +0100 |
parents | 495184d00360 |
children | 9496f28dadff |
comparison
equal
deleted
inserted
replaced
3988:760f563b1243 | 3989:f5ba7594cced |
---|---|
58 self.memory.storage = storage | 58 self.memory.storage = storage |
59 self.memory.getConfig.side_effect = self.get_test_config | 59 self.memory.getConfig.side_effect = self.get_test_config |
60 | 60 |
61 self.trigger = trigger.TriggerManager() | 61 self.trigger = trigger.TriggerManager() |
62 self.bridge = bridge | 62 self.bridge = bridge |
63 defer.ensureDeferred(self._postInit()) | 63 defer.ensureDeferred(self._post_init()) |
64 self.common_cache = AsyncMock() | 64 self.common_cache = AsyncMock() |
65 self._import_plugins() | 65 self._import_plugins() |
66 self._addBaseMenus() | 66 self._addBaseMenus() |
67 self.initialised = defer.Deferred() | 67 self.initialised = defer.Deferred() |
68 self.initialised.callback(None) | 68 self.initialised.callback(None) |
96 self._import_plugins() | 96 self._import_plugins() |
97 | 97 |
98 def _init(self): | 98 def _init(self): |
99 pass | 99 pass |
100 | 100 |
101 async def _postInit(self): | 101 async def _post_init(self): |
102 pass | 102 pass |
103 | 103 |
104 | 104 |
105 @fixture(scope="session") | 105 @fixture(scope="session") |
106 def host(bridge, storage): | 106 def host(bridge, storage): |