Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
Gets a list of registered plugins in a form if tuple (plugin name, plugin description). If not yet
autodiscovered, autodiscovers them.

:return list:

        def get_registered_plugin_uids():
    """
    Gets a list of registered plugins in a form if tuple (plugin name, plugin description). If not yet
    autodiscovered, autodiscovers them.

    :return list:
    """
    ensure_autodiscover()

    return [uid for uid, plugin in plugin_registry._registry.items()]
        


src/v/i/vishap-0.1/src/vishap/test.py   vishap(Download)
from vishap.conf import set_setting, get_setting, reset_to_defaults_settings
from vishap import defaults
from vishap import get_registered_plugin_uids, render_video
from vishap.base import BaseVideoPlugin, plugin_registry
 
    def test_01_get_available_plugin_uids(self):
        """
        Test ``autodiscover`` and ``get_available_plugin_uids``.
        """
        res = get_registered_plugin_uids()
        plugin_registry.register(ExamplePlugin)
 
        assert 'example' in get_registered_plugin_uids()
        res = render_video(self.youtube_url, plugin_uid='example').strip()
        self.assertEqual(res, self.rendered_youtube_responsive_embed_code)