Ejemplo n.º 1
0
def test_core_load_plugins(config, expected):
    core = TankCore(configs=[
        load_yaml(os.path.join(os.path.dirname(__file__), '../config'),
                  '00-base.yaml'), config
    ])
    core.load_plugins()
    assert set(core.plugins.keys()) == expected
Ejemplo n.º 2
0
def test_core_load_plugins(config, expected):
    core = TankCore([load_yaml(os.path.join(os.path.dirname(__file__), '../config'), '00-base.yaml'), config],
                    threading.Event())
    core.load_plugins()
    assert set(core.plugins.keys()) == expected
Ejemplo n.º 3
0
def test_core_load_plugins(config, expected):
    core = TankCore(
        [load_yaml(os.path.join(PATH, '../config'), '00-base.yaml'), config],
        threading.Event(), TankInfo({}))
    core.load_plugins()
    assert set(core.plugins.keys()) == expected