Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/n/i/ninfo-HEAD/tests/test_clone.py   ninfo(Download)
def test_plugin_cloning_no_config():
    n=ninfo.Ninfo(plugin_modules=test_plugins)
    assert 'a' in n
    assert 'b' not in n
 
def test_plugin_cloning_with_config():
    n=ninfo.Ninfo(plugin_modules=test_plugins, config_file="tests/clone.cfg")
def test_plugin_cloning_cloned_config():
    n=ninfo.Ninfo(plugin_modules=test_plugins, config_file="tests/clone.cfg")
    a = n.get_plugin('a')
    b = n.get_plugin('b')
 

src/n/i/ninfo-HEAD/tests/test_ninfo.py   ninfo(Download)
def test_plugin_loading():
    n=ninfo.Ninfo(plugin_modules=test_plugins)
    assert 'a' in n
    assert 'b' not in n
 
def test_plugin_lazy_loading():
    n=ninfo.Ninfo(plugin_modules=test_plugins)
    assert 'a' in n
    assert 'a' not in n.plugin_instances
 
def test_plugin_lazy_init():
    n=ninfo.Ninfo(plugin_modules=test_plugins)
    plugin = n.get_plugin('a')
    assert plugin is not None
    assert 'a' in n.plugin_instances
def test_plugin_compatible_types():
    n=ninfo.Ninfo(plugin_modules=test_plugins)
 
    cases = [
        ("example.com", True),