コード例 #1
0
ファイル: test_tankcore.py プロジェクト: zymne/yandex-tank
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
コード例 #2
0
ファイル: test_tankcore.py プロジェクト: netortik/yandex-tank
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
コード例 #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