-
Notifications
You must be signed in to change notification settings - Fork 79
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
✅ Upgrade remote sample fixtures #640
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #640 +/- ##
===========================================
- Coverage 99.78% 99.78% -0.01%
===========================================
Files 65 65
Lines 7075 7071 -4
Branches 1397 1397
===========================================
- Hits 7060 7056 -4
Misses 7 7
Partials 8 8
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
tests/test_wsireader.py
Outdated
@@ -2281,7 +2281,9 @@ class TestReader: | |||
"type", | |||
COLOR_DICT, | |||
), | |||
"base_wsi": WSIReader.open(_fetch_remote_sample("svs-1-small")), | |||
"base_wsi": WSIReader.open( | |||
_fetch_remote_sample("svs-1-small") |
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.
Can you not use remote_sample here?
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.
Rewrote code a bit but yes. On the plus side, no need to use pytest_generate_tests
— everything is happening here, using just native fixtures.
@blaginin Looks good to me. Just added a couple of minor suggestions. |
The new tests fixture has reduced coverage for dicom and AnnotationRenderer |
This PR addresses part of issue #603 and improves fixtures in tests:
_fetch_remote_sample
even though tests have a specialremote_sample
wrapper.remote_sample
previously created a new folder for each run (data-0, data-1, data-2, and so on). Now it uses just one folder for all remote fixtures during a test session._fetch_remote_sample
anddownload_data
since they had the same logic.