Exemplo n.º 1
0
def test_find_provider_by_class_name_not_found():
    registry = PluginRegistry()
    found = registry.find_provider_by_class_name(class_name="NotAThing")
    assert found is None
Exemplo n.º 2
0
def test_find_provider_by_class_name():
    registry = PluginRegistry()
    found = registry.find_provider_by_class_name(class_name="CondaEnvProvider")
    assert found is not None
    assert found.__class__.__name__ == "CondaEnvProvider"