diff --git a/amqtt/plugins/manager.py b/amqtt/plugins/manager.py index bc82c91..178acfa 100644 --- a/amqtt/plugins/manager.py +++ b/amqtt/plugins/manager.py @@ -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) diff --git a/tests/plugins/test_manager.py b/tests/plugins/test_manager.py index 3c899a3..a639755 100644 --- a/tests/plugins/test_manager.py +++ b/tests/plugins/test_manager.py @@ -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")