Esempio n. 1
0
def devel_validate_plugins():
    """Validate all plugins by checking they can be loaded."""
    from aiida.common.exceptions import EntryPointError
    from aiida.plugins.entry_point import validate_registered_entry_points

    try:
        validate_registered_entry_points()
    except EntryPointError as exception:
        echo.echo_critical(str(exception))

    echo.echo_success('all registered plugins could successfully loaded.')
Esempio n. 2
0
 def test_validate_registered_entry_points():
     """Test the `validate_registered_entry_points` function."""
     validate_registered_entry_points()