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
DM-39665: Remove faked DataCoordinate from all tests #852
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #852 +/- ##
==========================================
- Coverage 88.01% 87.98% -0.03%
==========================================
Files 269 269
Lines 35514 35435 -79
Branches 7442 7429 -13
==========================================
- Hits 31258 31178 -80
- Misses 3113 3114 +1
Partials 1143 1143
☔ View full report in Codecov by Sentry. |
@@ -91,26 +88,21 @@ def _makeDatasetRef( | |||
|
|||
if run is None: | |||
run = "dummy" | |||
dataId = DataCoordinate.standardize(dataId, graph=datasetType.dimensions) |
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.
Now that everything conforms in the code calling this I think I can delete this line (I had to add it whilst I was testing things). We don't even annotate this method as taking Mapping for dataId.
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 had to leave it in but I only call it for a dict
parameter since we do pass in dicts from the tests.
Mostly required adding some band values to DataIds.
Since we now always convert to DataCoordinate these are no longer needed.
No longer needed now that DatasetRef automatically creates one.
Not mypy clean but this is a start.
Tests use dicts and now expect it to be converted to DatasetRef
Core butler code should not assume that "instrument" is in the universe.
Add fake values for the missing dimensions.
Checklist
doc/changes