-
Notifications
You must be signed in to change notification settings - Fork 122
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
Preserve Collection assets on clone #834
Preserve Collection assets on clone #834
Conversation
Codecov Report
@@ Coverage Diff @@
## main #834 +/- ##
==========================================
- Coverage 94.34% 94.33% -0.01%
==========================================
Files 83 83
Lines 11923 11939 +16
Branches 1390 1400 +10
==========================================
+ Hits 11249 11263 +14
Misses 495 495
- Partials 179 181 +2
Continue to review full report at Codecov.
|
Sorry to leave the PR to my issue hanging @duckontheweb and thanks for adding the fix. I think this looks good for fixing the |
Related Issue(s):
Description:
Adds an
assets
argument toItem.__init__
andCollection.__init__
that accepts a dictionary mapping strings toAsset
objects, which allows us to attach Assets to these objects as part of instantiation.Also preserves Collection assets when using
Collection.clone
and adds regression test.cc: @cholden-ag
PR Checklist:
pre-commit run --all-files
)scripts/test
)