def test_missing_symlinked_jar_in_candidates(self): empty_symlink_map = {} result = IvyResolveResult(['non-existent-file-location'], empty_symlink_map, 'hash-name', {'default': self.ivy_report_path('ivy_utils_resources/report_with_diamond.xml') }) with self.assertRaises(IvyResolveMappingError): list(result.resolved_jars_for_each_target('default', [self.make_target('t', JarLibrary, jars=[JarDependency('org1', 'name1')]) ]))
def test_missing_hardlinked_jar_in_candidates(self): empty_hardlink_map = {} result = IvyResolveResult(['non-existent-file-location'], empty_hardlink_map, 'hash-name', {'default': self.ivy_report_path('ivy_utils_resources/report_with_diamond.xml') }) with self.assertRaises(IvyResolveMappingError): list(result.resolved_jars_for_each_target('default', [self.make_target('t', JarLibrary, jars=[JarDependency('org1', 'name1')]) ]))
def test_missing_symlinked_jar_in_candidates(self): empty_symlink_map = {} result = IvyResolveResult( ["non-existent-file-location"], empty_symlink_map, "hash-name", {"default": self.ivy_report_path("ivy_utils_resources/report_with_diamond.xml")}, ) with self.assertRaises(IvyResolveMappingError): list( result.resolved_jars_for_each_target( "default", [self.make_target("t", JarLibrary, jars=[JarDependency("org1", "name1")])] ) )
def test_missing_hardlinked_jar_in_candidates(self): empty_hardlink_map = {} result = IvyResolveResult( ["non-existent-file-location"], empty_hardlink_map, "hash-name", {"default": self.ivy_report_path("ivy_utils_resources/report_with_diamond.xml")}, ) with self.assertRaises(IvyResolveMappingError): list( result.resolved_jars_for_each_target( "default", [self.make_target("t", JarLibrary, jars=[JarDependency("org1", "name1")])], ) )