Fix missing plugin property

pull/19/head
Marius Kriegerowski 2021-01-09 21:06:41 +01:00 zatwierdzone przez Florian Ludwig
rodzic 080a358dd7
commit 6f586c253c
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -62,7 +62,7 @@ class PluginManager:
for ep in pkg_resources.iter_entry_points(group=namespace):
plugin = self._load_plugin(ep)
self._plugins.append(plugin)
self.logger.debug(" Plugin %s ready" % plugin.ep.name)
self.logger.debug(" Plugin %s ready" % ep.name)
def _load_plugin(self, ep: pkg_resources.EntryPoint):
try:

Wyświetl plik

@ -60,6 +60,9 @@ class BrokerTest(unittest.TestCase):
asyncio.set_event_loop(self.loop)
def tearDown(self):
pending = asyncio.all_tasks(loop=self.loop)
self.loop.run_until_complete(asyncio.gather(*pending))
self.loop.close()
@patch('hbmqtt.broker.PluginManager')