def test_find_new_deps_from_installed(galaxy_context): repo_spec = RepositorySpec(namespace='some_namespace', name='some_name', version='4.3.2') req_spec = RepositorySpec(namespace='some_required_namespace', name='some_required_name', version='1.0.0') some_requirement = Requirement(repository_spec=repo_spec, op=RequirementOps.EQ, requirement_spec=req_spec) installed_repo = Repository(repo_spec, requirements=[some_requirement, some_requirement]) res = install.find_new_deps_from_installed(galaxy_context, [installed_repo]) log.debug('res: %s', res) assert isinstance(res, list) assert isinstance(res[0], Requirement) assert res[0].requirement_spec == req_spec
def test_find_new_deps_from_installed_nothing_installed(galaxy_context): res = install.find_new_deps_from_installed(galaxy_context, []) assert res == []
def test_find_new_deps_from_installed_no_deps(galaxy_context): res = install.find_new_deps_from_installed(galaxy_context, [], no_deps=True) assert res == []