#NEWLINE# def test_find_packages_in_toolchain( build_worktree , toolchains ) : #NEWLINE# #INDENT# toolchains . create ( 'foo' ) #NEWLINE# qibuild . config . add_build_config ( 'foo' , toolchain = 'foo' ) #NEWLINE# world_package = toolchains . add_package ( 'foo' , 'world' ) #NEWLINE# hello = build_worktree . create_project ( 'hello' , build_depends = [ 'world' ] ) #NEWLINE# build_worktree . set_active_config ( 'foo' ) #NEWLINE# deps_solver = DepsSolver ( build_worktree ) #NEWLINE# assert ( deps_solver . get_dep_packages ( [ hello ] , [ 'build' ] ) == [ toolchains ] )