Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more test cases for cautious-robot (#20)
* Add more test cases for cautious-robot * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_download_images.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * update the test_buddycheck.py: 1. add another buddycheck instance with buddy_id initialized. 2. removing the leading whitespace with self.image_source_file and self.check_source_file in setUp. 3. update missing_imgs to retain its original index * update test_logging * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * remove test_check_alignment_case_insensitive_columns * Replace the retry template with a loop over retry codes to handle both scenarios: success after retry and failure after retry * Update test_downsampled_image_creation * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_buddycheck.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * 1. Update test_success_after_retries and test_failure_after_retries 2. Add testcases test_successful_download_with_subfolder and test_downsampled_image_creation_with_subfolder * fix downsize read bug * Update test_downsampled_image_creation(_with_subfolder) * Updated test_download_images.py to make it run faster * Update tests/test_download_images.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * Update tests/test_download_images.py Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> * "Add sample images from Rare-Species dataset (8511cb36-ea18-419a-b938-e6316e1855d4 & 94c53a1f-6bd9-469f-85b9-b2ce93e90c21) https://huggingface.co/datasets/imageomics/rare-species, Original source Smithsonian Institution, NMNH, image1 from Invertebrate Zoology, CC-0 by Patricia Perez, image2 from Entomology, CC-0 by Pixel Acuity LLC" * Custom error when validating empty input df Switch test from the merge method to the custom error in the validate method --------- Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> Co-authored-by: egrace479 <e.campolongo479@gmail.com> Co-authored-by: Matthew Thompson <thompson.4509@osu.edu>
- Loading branch information