def satellites(): """Available satellites and where they are defined Returns: Dict: For each satellite, a tuple describing which satellite plug-in defines the satellite. """ return {p.lower(): (s, p) for s in plugins.names(__name__) for p in plugins.parts(__name__, s)}
def stages(pipeline): """Get a list of stages for a given pipeline Args: pipeline (String): The pipeline. Returns: Iterator: Strings with the names of the stages. """ return plugins.parts(package_name=__name__, plugin_name=pipeline)
def test_named_part_not_in_parts(plugin_package): """Test that named parts are kept separate from unnamed parts""" plugin_name = "plugin_parts" part_name = "named_part" assert part_name not in plugins.parts(plugin_package, plugin_name)