-
Notifications
You must be signed in to change notification settings - Fork 0
Add more test cases for cautious-robot #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
…h 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
…ous-robot into feature/enhance-testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extra initialization test is up to you, but there were some other areas where it's not quite testing the function (when it's not passed the buddy_id
column name it should merge on just checksums regardless of whether there is a filename column in the checksum DataFrame).
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
…h scenarios: success after retry and failure after retry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are not removing the filename
column from the checksum DataFrame, the filename
columns both get suffixes in the merge. This isn't exposed, so I'm not worried about sticking with the default suffixes.
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
…. Add testcases test_successful_download_with_subfolder and test_downsampled_image_creation_with_subfolder
Hello @egrace479 @thompsonmj, I have updated the test cases, and now all the test cases run clear. Thanks for review the code! |
In |
I also receive 1 error:
Details:
|
Thank you! I updated test_download_images.py, it runs much faster!! Will commit my changes later. |
Strange, @thompsonmj, I see everything passing. I very much like your |
Same with me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One fix and a question on the images.
tests/testdata/images/image1.jpg
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the source of this (and the other) image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I downloaded them from google image. If it is inappropriate, we can use other images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the source of this (and the other) image?
Thank you! @egrace479 I have updated the testing images.
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
Co-authored-by: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com>
On the issue of the Regardless though, since the How does that sound? |
90c07c0
to
98a3fd9
Compare
…-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"
98a3fd9
to
90237f1
Compare
Switch test from the merge method to the custom error in the validate method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the hard work on this one!!
Added two test cases: test_download_images.py and test_buddycheck.py