kopia lustrzana https://github.com/Yakifo/amqtt
remove hbmqtt plugin namespace compatibility
rodzic
b958b6b29c
commit
86cec6d2a5
|
@ -64,9 +64,6 @@ class PluginManager:
|
|||
self._plugins.append(plugin)
|
||||
self.logger.debug(" Plugin %s ready" % ep.name)
|
||||
|
||||
if namespace.startswith("hbmqtt."):
|
||||
self._load_plugins("amqtt" + namespace[6:])
|
||||
|
||||
def _load_plugin(self, ep: pkg_resources.EntryPoint):
|
||||
try:
|
||||
self.logger.debug(" Loading plugin %s" % ep)
|
||||
|
|
|
@ -43,13 +43,6 @@ class TestPluginManager(unittest.TestCase):
|
|||
manager = PluginManager("amqtt.test.plugins", context=None)
|
||||
assert len(manager._plugins) > 0
|
||||
|
||||
def test_load_plugin_transition(self):
|
||||
# entry points have been renamed from hbmqtt. to amqtt.
|
||||
# For now the plugin manager automatically rewrites
|
||||
# hbmqtt.test.plugins -> amqtt.test.plugins
|
||||
manager = PluginManager("hbmqtt.test.plugins", context=None)
|
||||
assert len(manager._plugins) > 0
|
||||
|
||||
def test_fire_event(self):
|
||||
async def fire_event():
|
||||
await manager.fire_event("test")
|
||||
|
|
Ładowanie…
Reference in New Issue