Skip to content
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-45536: address edge cases in task mocking system #432

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

TallJimbo
Copy link
Member

@TallJimbo TallJimbo commented Aug 1, 2024

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

I'd prefer we not use this approach to signalling deferred loads to
QuantumContext at all, but removing it is way out of scope.
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 80.20%. Comparing base (5d287ca) to head (36fc00e).

Files Patch % Lines
...ython/lsst/pipe/base/tests/mocks/_pipeline_task.py 0.00% 2 Missing ⚠️
python/lsst/pipe/base/connections.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #432      +/-   ##
==========================================
- Coverage   80.24%   80.20%   -0.04%     
==========================================
  Files          96       96              
  Lines       10977    10975       -2     
  Branches     2100     2099       -1     
==========================================
- Hits         8808     8803       -5     
- Misses       1822     1824       +2     
- Partials      347      348       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"""The data ID for this dataset."""
return self.datasetRef.dataId
def __getattr__(self, name: str) -> Any:
return getattr(self.datasetRef, name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is because you needed some other method on datasetRef? Or because you wanted to simplify the code a bit?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there was some previously-unused code in the mocking stuff that needed id that was uncovered by the other change.

@TallJimbo TallJimbo merged commit 5079685 into main Aug 2, 2024
11 of 13 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-45536 branch August 2, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants