-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Exclude obj callback strict #320
Conversation
975db98
to
ad74369
Compare
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.
Hi @mskhviyu
Thanks for the PR. :)
I had a comment. Curious what your thoughts are on how this should work when ignore_order=True
deepdiff/diff.py
Outdated
@@ -94,6 +94,7 @@ def _report_progress(_stats, progress_logger, duration): | |||
'ignore_type_subclasses', | |||
'ignore_string_case', | |||
'exclude_obj_callback', | |||
'exclude_obj_callback_strict', |
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.
@mskhviyu
I wonder if this should be passed to DeepHash or not. When doing deephash calculations, we don't have both of the objects. We have only one of them.
Here in your unit test, if we set the exclude_obj_callback_strict
and also ignore_order=True
, it should throw and exception since DeepHash does not accept that parameter.
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.
my mistake, I didn't want to add to deephash. Removed from DEEPHASH_PARAM_KEYS, now my unit test passes successfully with the ignore_order=True parameter
4722bf8
to
0f6cf19
Compare
@mskhviyu Thanks for the update. There is one test that is failing: All it needs is this new parameter to be added to |
0f6cf19
to
0f90957
Compare
Thanks for the PR @mskhviyu |
Added to deep diff exclude_obj_callback_strict parameter which use AND instead OR