-
Notifications
You must be signed in to change notification settings - Fork 77
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
Test get_data when changing a subsets label #2609
Conversation
What if you change the subset name to be the same as data name? Will the app get confused? |
@pllim Added that case to the test and it still retrieves the data with the subset applied as expected. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2609 +/- ##
==========================================
- Coverage 91.54% 91.53% -0.02%
==========================================
Files 161 161
Lines 19757 19944 +187
==========================================
+ Hits 18086 18255 +169
- Misses 1671 1689 +18 ☔ View full report in Codecov by Sentry. |
jdaviz/tests/test_subsets.py
Outdated
assert (set(get_data_1_mask[0]) - set(get_data_2_mask[0]) | ||
== set(get_data_2_mask[0]) - set(get_data_1_mask[0])) |
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 don't understand this check, is simple array compare insufficient 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.
Yes, can you tell its Friday? 💀
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.
LGTM. Thanks!
Description
This pull request adds a test that makes sure renaming a subset does not change the result of a
get_data
call.Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.