19c9c7b6d534e88db6e365741f3e5f9addff4a97,tensorflow_datasets/core/download/download_manager_test.py,DownloadManagerTest,test_force_download_and_extract,#DownloadManagerTest#,301

Before Change


    self._write_info("/dl_dir/%s.INFO" % a.dl_fname,
                     {"original_fname": "b.tar.gz"})
    dl_a, self.dl_results[a.url] = _get_promise_on_event(a.url_info)
    ext_a, self.extract_results["/dl_dir/%s" % a.dl_fname] = (
        _get_promise_on_event("/extract_dir/TAR_GZ.%s" % a.dl_fname))
    dl_a.set()
    ext_a.set()
    manager = self._get_manager(
        force_download=True, force_extraction=True,

After Change


    self.assertEqual(res, f"/extract_dir/TAR_GZ.{a.file_name}")

    self.assertCountEqual(self.downloaded_urls, [a.url])
    self.assertCountEqual(self.extracted_paths, [a.file_path])
    self.assertNotEqual(a.file_path, "old content")
    self.assertNotEqual(a.file_path + ".INFO", "{}")
    self.assertNotEqual(f"/extract_dir/TAR_GZ.{a.file_name}", "old content")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: tensorflow/datasets
Commit Name: 19c9c7b6d534e88db6e365741f3e5f9addff4a97
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_force_download_and_extract


Project Name: tensorflow/datasets
Commit Name: 19c9c7b6d534e88db6e365741f3e5f9addff4a97
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_download_and_extract_archive_ext_in_fname


Project Name: tensorflow/datasets
Commit Name: 19c9c7b6d534e88db6e365741f3e5f9addff4a97
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_force_download_and_extract


Project Name: tensorflow/datasets
Commit Name: 19c9c7b6d534e88db6e365741f3e5f9addff4a97
Time: 2020-05-12
Author: epot@google.com
File Name: tensorflow_datasets/core/download/download_manager_test.py
Class Name: DownloadManagerTest
Method Name: test_download_and_extract