

def test_using_defaut_config(toolchains, args, build_worktree):
    qibuild.config.add_build_config('foo', toolchain='foo')
    foo_tc = toolchains.create('foo')
    build_worktree.set_default_config('foo')
    args.worktree = build_worktree.root
    assert (qitoolchain.parsers.get_toolchain(args) == foo_tc)

dataset/ETHPy150Open aldebaran/qibuild/python/qitoolchain/test/test_parsers.py test_using_defaut_config/original