Exemple #1
0
    def test_if_not_all_symlinked_files_exist_after_successful_fetch_fail(self):
        fetch = IvyFetchStep(["default"], "hash_name", False, None, "ivy_cache_dir", "global_ivy_workdir")

        # Stub resolving and creating the result, returning one missing artifacts.
        fetch._do_fetch = do_nothing
        fetch._load_from_fetch = return_resolve_result_missing_artifacts

        with self.assertRaises(IvyResolveMappingError):
            fetch.exec_and_load(None, None, [], None, None, None)
    def test_if_not_all_symlinked_files_exist_after_successful_fetch_fail(
            self):
        fetch = IvyFetchStep(['default'], 'hash_name', False, None,
                             'ivy_cache_dir', 'global_ivy_workdir')

        # Stub resolving and creating the result, returning one missing artifacts.
        fetch._do_fetch = do_nothing
        fetch._load_from_fetch = return_resolve_result_missing_artifacts

        with self.assertRaises(IvyResolveMappingError):
            fetch.exec_and_load(None, None, [], None, None, None)
  def test_if_not_all_hardlinked_files_exist_after_successful_fetch_fail(self):
    fetch = IvyFetchStep(['default'],
                         'hash_name',
                         False,
                         None,
                         'ivy_resolution_cache_dir',
                         'ivy_repository_cache_dir',
                         'ivy_workdir')

    # Stub resolving and creating the result, returning one missing artifacts.
    fetch._do_fetch = do_nothing
    fetch._load_from_fetch = return_resolve_result_missing_artifacts

    with self.assertRaises(IvyResolveMappingError):
      fetch.exec_and_load(None, None, [], None, None, None)
Exemple #4
0
    def test_if_not_all_hardlinked_files_exist_after_successful_fetch_fail(self):
        fetch = IvyFetchStep(
            ["default"],
            "hash_name",
            False,
            None,
            "ivy_resolution_cache_dir",
            "ivy_repository_cache_dir",
            "ivy_workdir",
        )

        # Stub resolving and creating the result, returning one missing artifacts.
        fetch._do_fetch = do_nothing
        fetch._load_from_fetch = return_resolve_result_missing_artifacts

        with self.assertRaises(IvyResolveMappingError):
            fetch.exec_and_load(None, None, [], None, None, None)